mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
typing
This commit is contained in:
@@ -1401,6 +1401,7 @@ class ActivateBcfViewpoint(bpy.types.Operator):
|
|||||||
self.hide_spaces(context)
|
self.hide_spaces(context)
|
||||||
|
|
||||||
def hide_spaces(self, context: bpy.types.Context) -> None:
|
def hide_spaces(self, context: bpy.types.Context) -> None:
|
||||||
|
assert context.area
|
||||||
old = context.area.type
|
old = context.area.type
|
||||||
context.area.type = "VIEW_3D"
|
context.area.type = "VIEW_3D"
|
||||||
bpy.ops.object.select_all(action="DESELECT")
|
bpy.ops.object.select_all(action="DESELECT")
|
||||||
|
|||||||
@@ -1060,6 +1060,7 @@ class Model(bonsai.core.tool.Model):
|
|||||||
if not refresh and element.id() in AuthoringData.type_thumbnails:
|
if not refresh and element.id() in AuthoringData.type_thumbnails:
|
||||||
return # Already processed
|
return # Already processed
|
||||||
|
|
||||||
|
assert isinstance(obj, bpy.types.Object)
|
||||||
obj.asset_generate_preview()
|
obj.asset_generate_preview()
|
||||||
while not obj.preview:
|
while not obj.preview:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user