Fixup for last commit: flipped logic for disabling SceneLayer render
authorDalai Felinto <dfelinto@gmail.com>
Wed, 22 Nov 2017 10:53:46 +0000 (08:53 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 22 Nov 2017 10:53:46 +0000 (08:53 -0200)
source/blender/blenloader/intern/versioning_280.c

index e331c285176f31346317399e540b20615f26ea32..3342d3244e0599bf5c88044d0a947d053410d86d 100644 (file)
@@ -422,7 +422,7 @@ void do_versions_after_linking_280(Main *main)
 
                                SceneLayer *scene_layer = BKE_scene_layer_add(scene, "Viewport");
                                /* If we ported all the original render layers, we don't need to make the viewport layer renderable. */
-                               if (BLI_listbase_is_single(&scene->render_layers)) {
+                               if (!BLI_listbase_is_single(&scene->render_layers)) {
                                        scene_layer->flag &= ~SCENE_LAYER_RENDER;
                                }