[Bf-blender-cvs] [ebd8a703ccb] master: Fix T83851: Python: operator macros cause a crash
Philipp Oeser
noreply at git.blender.org
Wed Dec 16 17:24:06 CET 2020
Commit: ebd8a703ccb6b8884b26e78771a9fec8ba919f9a
Author: Philipp Oeser
Date: Wed Dec 16 16:41:47 2020 +0100
Branches: master
https://developer.blender.org/rBebd8a703ccb6b8884b26e78771a9fec8ba919f9a
Fix T83851: Python: operator macros cause a crash
Caused by rB7447eb7e7430.
This is just a copy-paste error [previous LISTBASE_FOREACH substitution
of marco loop in that file has a different starting point which is not
appropriate here]
Maniphest Tasks: T83851
Differential Revision: https://developer.blender.org/D9872
===================================================================
M source/blender/windowmanager/intern/wm_event_system.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 61624ad9d7c..c1ae307eb55 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -1204,7 +1204,7 @@ static wmOperator *wm_operator_create(wmWindowManager *wm,
RNA_STRUCT_END;
}
else {
- LISTBASE_FOREACH (wmOperatorTypeMacro *, macro, &op->opm->type->macro) {
+ LISTBASE_FOREACH (wmOperatorTypeMacro *, macro, &ot->macro) {
wmOperatorType *otm = WM_operatortype_find(macro->idname, 0);
wmOperator *opm = wm_operator_create(wm, otm, macro->ptr, NULL);
More information about the Bf-blender-cvs
mailing list