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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-08-25 20:25:55 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-08-25 20:25:55 +0400
commit81212ec7efe9a0bf85ec320e4e8de22136d75894 (patch)
tree2d3aa530eaefa04dd0967d5366d1253465124079
parentb42d6c0fc2a0b515b3ec1ab20400c56e62f29cef (diff)
Fix #23470: scene.objects.link() did not update viewport,
patch by Dan Eicher, thanks!
-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 6f36ff51c87..5ff1dbcd2b9 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -212,6 +212,8 @@ static Base *rna_Scene_object_link(Scene *scene, bContext *C, ReportList *report
/* slows down importers too much, run scene.update() */
/* DAG_scene_sort(G.main, scene); */
+ WM_main_add_notifier(NC_SCENE|ND_OB_ACTIVE, scene);
+
return base;
}