New activate model operator to switch back to a MODEL_VIEW target view subcontext

This commit is contained in:
Dion Moult
2023-04-12 21:27:29 +10:00
parent 92a8bf27c8
commit 7ba65857bd
6 changed files with 46 additions and 10 deletions
+1 -1
View File
@@ -1324,7 +1324,7 @@ class Drawing(blenderbim.core.tool.Drawing):
return True if (camera and camera.data.type == "ORTHO") else False
@classmethod
def activate_view(cls, camera):
def activate_drawing(cls, camera):
area = next(area for area in bpy.context.screen.areas if area.type == "VIEW_3D")
is_local_view = area.spaces[0].local_view is not None
if is_local_view: