Commit: 59fcfaf5c3574d7de97b0333e1b08609e96a3d86
Author: Dalai Felinto
Date:   Mon Jan 15 19:06:30 2018 -0200
Branches: blender2.8
https://developer.blender.org/rB59fcfaf5c3574d7de97b0333e1b08609e96a3d86

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

===================================================================

M       source/blender/editors/space_outliner/outliner_tree.c

===================================================================

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);
 }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to