diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-01-16 00:06:30 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-01-16 00:08:45 +0300 |
commit | 59fcfaf5c3574d7de97b0333e1b08609e96a3d86 (patch) | |
tree | e84c78f1939d2cbe811e50f8ca2a00411fe2b4bf /source/blender/editors/space_outliner/outliner_tree.c | |
parent | ae124242987f687c792c5771ca262ceed49c597e (diff) |
Fix crash in outliner when moving objects around
How to reproduce it:
* Change Outliner from Active View Layer to Collections
* Create a new collection under Master Collection (Collection 2)
* Move all three objects from Collection 1 to Collection 2
* Move all three objects from Collection 2 to Collection 1
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tree.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index e1ac6615ea4..5ce9d71ecd5 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -71,6 +71,7 @@ #include "BKE_idcode.h" #include "BKE_outliner_treehash.h" +#include "DEG_depsgraph.h" #include "DEG_depsgraph_build.h" #include "ED_armature.h" @@ -469,6 +470,10 @@ static void outliner_object_reorder( BLI_freelistN(&data.objects_selected_array); DEG_relations_tag_update(bmain); + + /* TODO(sergey): Use proper flag for tagging here. */ + DEG_id_tag_update(id, 0); + WM_main_add_notifier(NC_SCENE | ND_LAYER, NULL); } |