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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user