Blender Git Loki

Git Commits -> Revision a059958

February 18, 2016, 20:11 (GMT)
(Un-)Register widgets attached to modal operator with the operatortype

We have some widgets-groups that are attached to modal operators, meaning, they are only visible (actually accessible) as long as the modal OP runs. I simplified the process of setting those up by adding a wmWidgetGroupType pointer to wmOperatorType struct. If you assign a value to it, everything else is handled by widget system.

Also, previously key map entries for widget-groups attached to modal OP's were only visible while the OP ran, since it was registered and unregistered during OP runtime. This is fixed, since they are now (un-)registered with the OP-type.

Commit Details:

Full Hash: a05995850666425987b549ae67b01a871693fee8
Parent Commit: 89ef87f
Lines Changed: +94, -51

11 Modified Paths:

/source/blender/editors/space_api/spacetypes.c (+3, -3) (Diff)
/source/blender/editors/space_graph/graph_edit.c (+15, -13) (Diff)
/source/blender/editors/space_sequencer/sequencer_view.c (+27, -23) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+7, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+5, -0) (Diff)
/source/blender/windowmanager/widgets/intern/wm_widgetgroup.c (+3, -1) (Diff)
/source/blender/windowmanager/widgets/intern/wm_widgetmap.c (+16, -5) (Diff)
/source/blender/windowmanager/widgets/WM_widget_api.h (+0, -2) (Diff)
/source/blender/windowmanager/widgets/WM_widget_types.h (+1, -1) (Diff)
/source/blender/windowmanager/widgets/wm_widget_wmapi.h (+14, -1) (Diff)
/source/blender/windowmanager/WM_types.h (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021