diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-06 10:44:32 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-06 10:44:32 +0300 |
commit | 62450e8485ded339889e292e41453398dad5adcc (patch) | |
tree | 1e4cf5a01362a2d15e397ebbe559c2b7be273c8d /source/blender/windowmanager/WM_toolsystem.h | |
parent | 693aa573db4068f5c8c30f0958cb8850c806a285 (diff) |
WM: suppress assertion when switching tools
Changing the object mode outside the 3D view would trigger this
assertion. This was harmless, only assert for space types that
define the tools mode.
Diffstat (limited to 'source/blender/windowmanager/WM_toolsystem.h')
-rw-r--r-- | source/blender/windowmanager/WM_toolsystem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_toolsystem.h b/source/blender/windowmanager/WM_toolsystem.h index a9e1495d9bf..96094e9e7ef 100644 --- a/source/blender/windowmanager/WM_toolsystem.h +++ b/source/blender/windowmanager/WM_toolsystem.h @@ -28,6 +28,11 @@ struct wmOperatorType; #define WM_TOOLSYSTEM_SPACE_MASK \ ((1 << SPACE_IMAGE) | (1 << SPACE_NODE) | (1 << SPACE_VIEW3D) | (1 << SPACE_SEQ)) +/** + * Space-types that define their own "mode" (as returned by #WM_toolsystem_mode_from_spacetype). + */ +#define WM_TOOLSYSTEM_SPACE_MASK_MODE_FROM_SPACE ((1 << SPACE_IMAGE) | (1 << SPACE_SEQ)) + /* Values that define a category of active tool. */ typedef struct bToolKey { int space_type; |