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 committed by Jeroen Bakker
parent a8998af85d
commit 13530e83f0
Notes: blender-bot 2023-02-13 20:10:21 +01:00
Referenced by issue #83851, Python: operator macros cause a crash
1 changed files with 1 additions and 1 deletions

View File

@ -1199,7 +1199,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);