mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 00:00:11 +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")
|
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")
|
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
|
return context_override
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user