Fix [#22503] Can't create any objects in new scenes.
authorMatt Ebb <matt@mke3.net>
Sat, 5 Jun 2010 00:21:26 +0000 (00:21 +0000)
committerMatt Ebb <matt@mke3.net>
Sat, 5 Jun 2010 00:21:26 +0000 (00:21 +0000)
source/blender/blenkernel/intern/scene.c

index faabaf4..dcd305e 100644 (file)
@@ -310,7 +310,7 @@ Scene *add_scene(char *name)
        int a;
 
        sce= alloc_libblock(&G.main->scene, ID_SCE, name);
-       sce->lay= 1;
+       sce->lay= sce->layact= 1;
        
        sce->r.mode= R_GAMMA|R_OSA|R_SHADOW|R_SSS|R_ENVMAP|R_RAYTRACE;
        sce->r.cfra= 1;