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>2018-10-26 02:42:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-26 02:46:35 +0300
commita4a6ed1ba3c86ed842f4373c65d64d28d827f864 (patch)
tree29871b7eb582610021e2260c1ca92ec21187b4c6 /source/blender/windowmanager/WM_toolsystem.h
parent6c86e1a781162e5a62955b136833ecf78010e2bc (diff)
WM: default tool was being set for space types w/o tools
Add mask for space types so we don't accidentally add tools for space types that don't support it.
Diffstat (limited to 'source/blender/windowmanager/WM_toolsystem.h')
-rw-r--r--source/blender/windowmanager/WM_toolsystem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_toolsystem.h b/source/blender/windowmanager/WM_toolsystem.h
index af9551606da..21408896877 100644
--- a/source/blender/windowmanager/WM_toolsystem.h
+++ b/source/blender/windowmanager/WM_toolsystem.h
@@ -44,6 +44,11 @@ struct StructRNA;
/* wm_toolsystem.c */
+#define WM_TOOLSYSTEM_SPACE_MASK ( \
+ (1 << SPACE_VIEW3D) | \
+ (1 << SPACE_IMAGE) \
+)
+
/* Values that define a categoey of active tool. */
typedef struct bToolKey { int space_type; int mode; } bToolKey;