diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2017-03-10 19:05:50 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-03-10 19:17:13 +0300 |
commit | 67302025105ed3f1273b5714d792ec7a79f7e381 (patch) | |
tree | ff69b8cc5e23a082374d5f7d1521d5783420e71b /source/blender/editors/space_outliner/outliner_draw.c | |
parent | 1100ddeaa97c561c277a63c61b3ebee96b5ef877 (diff) |
Improve outliner drag&drop feedback by using drop poll callbacks
This way we can ensure the overlay to indicate where the item would be
placed if it was dropped now is always at the correct place and doesn't
mislead the user.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 771591240d6..6207ed8579c 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -1772,7 +1772,7 @@ static void outliner_draw_tree( outliner_draw_tree_element(C, block, fstyle, scene, sl, ar, soops, te, te->drag_data != NULL, startx, &starty, te_edit, &te_floating); } - if (te_floating) { + if (te_floating && te_floating->drag_data->insert_handle) { outliner_draw_tree_element_floating(ar, te_floating); } |