mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
typing
This commit is contained in:
@@ -1401,6 +1401,7 @@ class ActivateBcfViewpoint(bpy.types.Operator):
|
||||
self.hide_spaces(context)
|
||||
|
||||
def hide_spaces(self, context: bpy.types.Context) -> None:
|
||||
assert context.area
|
||||
old = context.area.type
|
||||
context.area.type = "VIEW_3D"
|
||||
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:
|
||||
return # Already processed
|
||||
|
||||
assert isinstance(obj, bpy.types.Object)
|
||||
obj.asset_generate_preview()
|
||||
while not obj.preview:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user