diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-13 16:59:58 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-13 17:00:39 +0300 |
commit | b16bf6da80e094cec38384ec5ca877559d1fa9bf (patch) | |
tree | ba3c927846d7ff51e4f0fbf53919d8345bf565be /source | |
parent | 9f63cbf4a74486f4df030fe8c3fe5fa3952b0910 (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')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 2 |
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() */ |