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:
Diffstat (limited to 'source/blender/python/api2_2x/Scene.c')
-rw-r--r--source/blender/python/api2_2x/Scene.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c
index 4f1ce26778d..4f986e51555 100644
--- a/source/blender/python/api2_2x/Scene.c
+++ b/source/blender/python/api2_2x/Scene.c
@@ -688,8 +688,10 @@ static PyObject *Scene_makeCurrent( BPy_Scene * self )
{
Scene *scene = self->scene;
- if( scene )
+ if( scene ) {
set_scene( scene );
+ scene_update_for_newframe(scene, scene->lay);
+ }
Py_INCREF( Py_None );
return Py_None;