[Bf-blender-cvs] [b16bf6d] master: Fix T45364: NEW DEPSGRAPH: New Torus created can't be transformed

Sergey Sharybin noreply at git.blender.org
Mon Jul 13 16:03:26 CEST 2015


Commit: b16bf6da80e094cec38384ec5ca877559d1fa9bf
Author: Sergey Sharybin
Date:   Mon Jul 13 15:59:58 2015 +0200
Branches: master
https://developer.blender.org/rBb16bf6da80e094cec38384ec5ca877559d1fa9bf

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.

===================================================================

M	source/blender/makesrna/intern/rna_scene.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 4688e69..54a0af1 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() */




More information about the Bf-blender-cvs mailing list