Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_context.c
| Show First 20 Lines • Show All 393 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| else if (CTX_data_equals(member, "active_operator")) { | else if (CTX_data_equals(member, "active_operator")) { | ||||
| wmOperator *op = NULL; | wmOperator *op = NULL; | ||||
| SpaceFile *sfile = CTX_wm_space_file(C); | SpaceFile *sfile = CTX_wm_space_file(C); | ||||
| if (sfile) { | if (sfile) { | ||||
| op = sfile->op; | op = sfile->op; | ||||
| } | } | ||||
| else if ((op = uiContextActiveOperator(C))) { | else if ((op = UI_context_active_operator_get(C))) { | ||||
| /* do nothign */ | /* do nothign */ | ||||
| } | } | ||||
| else { | else { | ||||
| /* note, this checks poll, could be a problem, but this also | /* note, this checks poll, could be a problem, but this also | ||||
| * happens for the toolbar */ | * happens for the toolbar */ | ||||
| op = WM_operator_last_redo(C); | op = WM_operator_last_redo(C); | ||||
| } | } | ||||
| /* TODO, get the operator from popup's */ | /* TODO, get the operator from popup's */ | ||||
| Show All 13 Lines | |||||