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>2015-07-13 16:59:58 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-07-13 17:00:39 +0300
commitb16bf6da80e094cec38384ec5ca877559d1fa9bf (patch)
treeba3c927846d7ff51e4f0fbf53919d8345bf565be /source/blender/makesrna
parent9f63cbf4a74486f4df030fe8c3fe5fa3952b0910 (diff)
Fix T45364: NEW DEPSGRAPH: New Torus created can't be transformed
Linking objects to a scene via python should ensure relations are properly updated for that scene.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 4688e691dae..54a0af1809b 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -480,6 +480,8 @@ static Base *rna_Scene_object_link(Scene *scene, bContext *C, ReportList *report
if (scene == scene_act)
ob->lay = base->lay;
+ /* TODO(sergey): Only update relations for the current scene. */
+ DAG_relations_tag_update(CTX_data_main(C));
DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME);
/* slows down importers too much, run scene.update() */