Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-01-03 04:26:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-03 04:34:55 +0300
commita8ce9a143abbb51eae28e5d0cae1fb310bd0c24c (patch)
treeb883f6e266a4e89693be856ee2fae0efd9f120d4 /source/blender/makesdna/DNA_workspace_types.h
parenta854840e76ae3e0724531524e8b1d7a4cd63ea1d (diff)
Tool System: store the fallback tool for re-use
The fallback tool was run-time only data, now it's stored in the blend file.
Diffstat (limited to 'source/blender/makesdna/DNA_workspace_types.h')
-rw-r--r--source/blender/makesdna/DNA_workspace_types.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_workspace_types.h b/source/blender/makesdna/DNA_workspace_types.h
index 573b076542e..d2461657480 100644
--- a/source/blender/makesdna/DNA_workspace_types.h
+++ b/source/blender/makesdna/DNA_workspace_types.h
@@ -35,8 +35,7 @@ typedef struct bToolRef_Runtime {
char gizmo_group[64];
char data_block[64];
- /** Optionally use these when not interacting directly with the primary tools gizmo. */
- char idname_fallback[64];
+ /** Keymap for #bToolRef.idname_fallback, if set. */
char keymap_fallback[64];
/** Use to infer primary operator to use when setting accelerator keys. */
@@ -51,6 +50,9 @@ typedef struct bToolRef {
struct bToolRef *next, *prev;
char idname[64];
+ /** Optionally use these when not interacting directly with the primary tools gizmo. */
+ char idname_fallback[64];
+
/** Use to avoid initializing the same tool multiple times. */
short tag;