Fix #23470: scene.objects.link() did not update viewport,

patch by Dan Eicher, thanks!
This commit is contained in:
Brecht Van Lommel
2010-08-25 16:25:55 +00:00
parent b42d6c0fc2
commit 81212ec7ef

View File

@@ -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;
}