Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKai Jægersen <kaio>2020-03-09 18:56:12 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-03-09 19:11:24 +0300
commit6f4612a7cc428a8e0c8266e50f52bcda3615a586 (patch)
tree149739f0c7a99b5408bfdaaa0976952e7cb871a3 /source
parentda101eddef02ccdb8f2cb4735343f6c0070ca3b3 (diff)
Python API: allow overriding context.workspace for workspace operators
Differential Revision: https://developer.blender.org/D6867
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/screen/workspace_edit.c3
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)