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:
Philipp Oeser 2020-12-16 16:41:47 +01:00
parent a7628ec22a
commit ebd8a703cc
Notes: blender-bot 2023-02-14 08:10:06 +01:00
Referenced by issue #83851, Python: operator macros cause a crash
Referenced by issue #83216, Potential candidates for corrective releases
1 changed files with 1 additions and 1 deletions

View File

@ -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);