Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_event_system.c
| Show First 20 Lines • Show All 1,198 Lines • ▼ Show 20 Lines | if (properties) { | ||||
| opm->opm = motherop; /* Pointer to mom, for modal(). */ | opm->opm = motherop; /* Pointer to mom, for modal(). */ | ||||
| otmacro = otmacro->next; | otmacro = otmacro->next; | ||||
| } | } | ||||
| } | } | ||||
| RNA_STRUCT_END; | RNA_STRUCT_END; | ||||
| } | } | ||||
| else { | else { | ||||
| LISTBASE_FOREACH (wmOperatorTypeMacro *, macro, &op->opm->type->macro) { | LISTBASE_FOREACH (wmOperatorTypeMacro *, macro, &ot->macro) { | ||||
| wmOperatorType *otm = WM_operatortype_find(macro->idname, 0); | wmOperatorType *otm = WM_operatortype_find(macro->idname, 0); | ||||
| wmOperator *opm = wm_operator_create(wm, otm, macro->ptr, NULL); | wmOperator *opm = wm_operator_create(wm, otm, macro->ptr, NULL); | ||||
| BLI_addtail(&motherop->macro, opm); | BLI_addtail(&motherop->macro, opm); | ||||
| opm->opm = motherop; /* Pointer to mom, for modal(). */ | opm->opm = motherop; /* Pointer to mom, for modal(). */ | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,958 Lines • Show Last 20 Lines | |||||