mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
get_viewport_context to also return space
This commit is contained in:
@@ -168,7 +168,8 @@ class Blender:
|
||||
"""
|
||||
area = next(area for area in bpy.context.screen.areas if area.type == "VIEW_3D")
|
||||
region = next(region for region in area.regions if region.type == "WINDOW")
|
||||
context_override = {"area": area, "region": region}
|
||||
space = next(space for space in area.spaces if space.type == "VIEW_3D")
|
||||
context_override = {"area": area, "region": region, "space_data": space}
|
||||
return context_override
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user