diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-03 19:33:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-03 19:38:08 +0300 |
commit | 81a23d1f2db5d3c21e3c35cf3128f5e6326df54a (patch) | |
tree | abb1e5a5866d6928d1ad1ed5406d8b84299cc249 /source/blender/makesdna/DNA_workspace_types.h | |
parent | 51acd547605a9c3b1644fba9d6e3168e37973c68 (diff) |
Tool System: add operator for introspection
In some cases we want associate use an operator for a tool
for introspection, so we can for eg, automatically
use the same binding for in the popup toolbar.
Space-G/R/S for transform now work as accelerator keys again.
Also Space-E for extrude.
Diffstat (limited to 'source/blender/makesdna/DNA_workspace_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_workspace_types.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_workspace_types.h b/source/blender/makesdna/DNA_workspace_types.h index 585794fbe97..f07dc195455 100644 --- a/source/blender/makesdna/DNA_workspace_types.h +++ b/source/blender/makesdna/DNA_workspace_types.h @@ -58,12 +58,15 @@ typedef struct bToolRef_Runtime { int cursor; - /* One of these 3 must be defined. */ + /** One of these 3 must be defined. */ char keymap[64]; char manipulator_group[64]; char data_block[64]; - /* index when a tool is a member of a group */ + /** Use to infer primary operator to use when setting accelerator keys. */ + char operator[64]; + + /** Index when a tool is a member of a group. */ int index; } bToolRef_Runtime; @@ -76,7 +79,7 @@ typedef struct bToolRef { /** Use to avoid initializing the same tool multiple times. */ short tag; - /** bToolKey (spacetype, mode), used in 'WM_api.h' */ + /** #bToolKey (spacetype, mode), used in 'WM_api.h' */ short space_type; /** * Value depends ont the 'space_type', object mode for 3D view, image editor has own mode too. |