diff options
Diffstat (limited to 'source/blender/editors/screen/workspace_edit.c')
-rw-r--r-- | source/blender/editors/screen/workspace_edit.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) |