Outliner: Use scene_layer from context
authorDalai Felinto <dfelinto@gmail.com>
Tue, 18 Jul 2017 15:14:43 +0000 (17:14 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Tue, 18 Jul 2017 15:14:43 +0000 (17:14 +0200)
source/blender/editors/space_outliner/outliner_tree.c

index 568927425a9ea865bd7ae4d76f294ec6933b0e08..adb019766ea9a940d6a306a36e59678b9cd53393 100644 (file)
@@ -1944,7 +1944,7 @@ void outliner_build_tree(Main *mainvar, Scene *scene, SceneLayer *sl, SpaceOops
                outliner_add_orphaned_datablocks(mainvar, soops);
        }
        else if (soops->outlinevis == SO_ACT_LAYER) {
-               outliner_add_collections_act_layer(soops, BKE_scene_layer_context_active_PLACEHOLDER(scene));
+               outliner_add_collections_act_layer(soops, sl);
        }
        else if (soops->outlinevis == SO_COLLECTIONS) {
                outliner_add_collections_master(soops, scene);