From b16bf6da80e094cec38384ec5ca877559d1fa9bf Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 13 Jul 2015 15:59:58 +0200 Subject: [PATCH] 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. --- source/blender/makesrna/intern/rna_scene.c | 2 ++ 1 file changed, 2 insertions(+) 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() */