Commit: 6f4612a7cc428a8e0c8266e50f52bcda3615a586 Author: Kai Jægersen Date: Mon Mar 9 16:56:12 2020 +0100 Branches: master https://developer.blender.org/rB6f4612a7cc428a8e0c8266e50f52bcda3615a586
Python API: allow overriding context.workspace for workspace operators Differential Revision: https://developer.blender.org/D6867 =================================================================== M source/blender/editors/screen/workspace_edit.c =================================================================== diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c index e61b42bf99f..47f6324ee0d 100644 --- a/source/blender/editors/screen/workspace_edit.c +++ b/source/blender/editors/screen/workspace_edit.c @@ -266,8 +266,7 @@ static WorkSpace *workspace_context_get(bContext *C) return (WorkSpace *)id; } - wmWindow *win = CTX_wm_window(C); - return WM_window_get_active_workspace(win); + return CTX_wm_workspace(C); } static bool workspace_context_poll(bContext *C) _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
