Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-01-16 00:06:30 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-01-16 00:08:45 +0300
commit59fcfaf5c3574d7de97b0333e1b08609e96a3d86 (patch)
treee84c78f1939d2cbe811e50f8ca2a00411fe2b4bf /source/blender/editors/space_outliner/outliner_tree.c
parentae124242987f687c792c5771ca262ceed49c597e (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.c5
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);
}