Python API: allow overriding context.workspace for workspace operators
Differential Revision: https://developer.blender.org/D6867
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user