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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-10-24 17:47:34 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-24 17:47:34 +0300
commit3936ba9725b0fd85aadbe844b4742e8088471b47 (patch)
treeb5a1dddb92f8933ef9d27defe73d8345464a2810 /source/blender/editors/space_outliner/outliner_edit.c
parentd012c9d0f46f931bc308da3fd70d9d7d5b298bb3 (diff)
Depsgraph: Avoid explicit relations rebuild calls
We wouldn't know which dependency graphs needs/safe for reconstruction, so rather use API which tells that relations are out of date. This way graph evaluation will take care of the rest. Committing to 2.8 only since it's where we can't reliably know the graph and is probably not that safe to apply this in master.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_edit.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 24f147a68bf..95663092a7d 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -493,7 +493,7 @@ static int outliner_id_remap_exec(bContext *C, wmOperator *op)
BKE_main_lib_objects_recalc_all(bmain);
/* recreate dependency graph to include new objects */
- DEG_scene_relations_rebuild(bmain, scene);
+ DEG_relations_tag_update(bmain);
/* free gpu materials, some materials depend on existing objects, such as lamps so freeing correctly refreshes */
GPU_materials_free();