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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-09-19 21:11:07 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-09-19 21:11:07 +0400
commit3bf576e57eaddac527a8e2079998e705303fdadd (patch)
tree537b6c7e070fffee1e60e6f1805208a8b9791f6f /source
parentf12d698eadef3e93cea1627a4778d0a86a7afe20 (diff)
Fix missing dependency graph update when switching to another scene, now does
same update as loading .blend or switching layer visibility.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/screen/screen_edit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c
index 11d32e11cd0..e9447530a98 100644
--- a/source/blender/editors/screen/screen_edit.c
+++ b/source/blender/editors/screen/screen_edit.c
@@ -40,6 +40,7 @@
#include "BLI_utildefines.h"
#include "BKE_context.h"
+#include "BKE_depsgraph.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_main.h"
@@ -1506,6 +1507,7 @@ void ED_screen_set_scene(bContext *C, bScreen *screen, Scene *scene)
CTX_data_scene_set(C, scene);
BKE_scene_set_background(bmain, scene);
+ DAG_on_visible_update(bmain, FALSE);
ED_render_engine_changed(bmain);
ED_update_for_newframe(bmain, scene, 1);