Workspace: Move engines to workspace and Properties Editor cleanup
[blender.git] / source / blender / editors / screen / screen_context.c
index 5813f3172953511a6c27420bfed0e08bc7c38fd3..b8575b2da2aa1cb8c70bf5154e6effcdb565cccf 100644 (file)
@@ -89,7 +89,7 @@ int ed_screen_context(const bContext *C, const char *member, bContextDataResult
        ScrArea *sa = CTX_wm_area(C);
        Scene *scene = WM_window_get_active_scene(win);
        WorkSpace *workspace = BKE_workspace_active_get(win->workspace_hook);
-       SceneLayer *sl = BKE_scene_layer_from_workspace_get(workspace);
+       SceneLayer *sl = BKE_scene_layer_from_workspace_get(scene, workspace);
        Object *obedit = scene->obedit;
        Object *obact = sl->basact ? sl->basact->object : NULL;