diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-18 18:32:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-18 18:36:11 +0300 |
commit | f9547ab3133654f7dac805f9d61c49183fa2046c (patch) | |
tree | 8e57fe4457f2e070d2fe219bbf41d6532b56ded8 /source/blender/makesdna | |
parent | c2d5411cbfe2da4b4a274a8695cec8a024cad886 (diff) |
Fix tools not being initialized on startup
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_workspace_types.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_workspace_types.h b/source/blender/makesdna/DNA_workspace_types.h index 12dd2d9962a..24fa0e06d90 100644 --- a/source/blender/makesdna/DNA_workspace_types.h +++ b/source/blender/makesdna/DNA_workspace_types.h @@ -71,8 +71,11 @@ typedef struct bToolRef { struct bToolRef *next, *prev; char idname[64]; + /** Use to avoid initializing the same tool multiple times. */ + short tag; + /** bToolKey (spacetype, mode), used in 'WM_api.h' */ - int space_type; + short space_type; /** * Value depends ont the 'space_type', object mode for 3D view, image editor has own mode too. * RNA needs to handle using item function. |