diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-10 07:44:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-10 07:44:50 +0400 |
commit | 5caf6e9070ce3694b62be9b8599f93d063470dd6 (patch) | |
tree | 69e00a915ba7562a979b0ff4de8f10e30411d6cc /source/blender/editors/interface/interface_intern.h | |
parent | 08cc1c6bb96084bcd9e70b19edf9048fffe1fd3d (diff) |
presets now work from non-redo popups,
ended up having to add a new pointer into the uiBlock (which I'd rather have avoided), but setting the uiLayoutSetContextPointer(..) was complicated to properly use for submenus and popus.
Diffstat (limited to 'source/blender/editors/interface/interface_intern.h')
-rw-r--r-- | source/blender/editors/interface/interface_intern.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h index aa4158ad4b7..16e0153b910 100644 --- a/source/blender/editors/interface/interface_intern.h +++ b/source/blender/editors/interface/interface_intern.h @@ -314,7 +314,10 @@ struct uiBlock { ListBase saferct; // uiSafetyRct list uiPopupBlockHandle *handle; // handle - + + struct wmOperator *ui_operator;// use so presets can find the operator, + // across menus and from nested popups which fail for operator context. + void *evil_C; // XXX hack for dynamic operator enums struct UnitSettings *unit; // unit system, used a lot for numeric buttons so include here rather then fetching through the scene every time. |