diff options
author | Robert Guetzkow <gitcommit@outlook.de> | 2020-10-13 00:55:40 +0300 |
---|---|---|
committer | Robert Guetzkow <gitcommit@outlook.de> | 2020-10-13 02:17:36 +0300 |
commit | 8427e02abc5e7963cee14e15bc9a1c78c95d28e6 (patch) | |
tree | 5bda7dd3f5c7ef2b273674391c7bd5c1219aabe8 /source/blender/windowmanager | |
parent | dc71ad062408b138cc174f348d833b244d098a8f (diff) |
Fix T81589: Correct drag type handling in outliner
Blender crashed when dragging and dropping color into the outliner.
This issue was cause by a missing check for the correct drag type
in `datastack_drop_poll`. The check is added in this commit.
Additionally, a new drag type is introduced for the "data stack"
drag option, that was introduced in commit 1572da858df4, to
differentiate it from the existing WM_DRAG_ID type.
Reviewed By: Severin
Differential Revision: https://developer.blender.org/D9169
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 82d6e93dd87..acd72a4b1fd 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -822,6 +822,7 @@ typedef void (*wmPaintCursorDraw)(struct bContext *C, int, int, void *customdata #define WM_DRAG_NAME 3 #define WM_DRAG_VALUE 4 #define WM_DRAG_COLOR 5 +#define WM_DRAG_DATASTACK 6 typedef enum wmDragFlags { WM_DRAG_NOP = 0, |