mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 11:20:21 +00:00
typing
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
import bpy
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.util.element
|
||||
import bonsai.bim.helper
|
||||
import bonsai.tool as tool
|
||||
import bonsai.bim.module.model.profile as model_profile
|
||||
|
||||
@@ -34,6 +34,7 @@ import bonsai.tool as tool
|
||||
import bonsai.core.geometry
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.element
|
||||
import ifcopenshell.util.unit
|
||||
|
||||
|
||||
def get_subelement_class(self, context):
|
||||
|
||||
@@ -803,7 +803,7 @@ class Blender(bonsai.core.tool.Blender):
|
||||
return collections_mapping
|
||||
|
||||
@classmethod
|
||||
def is_editable(cls, obj):
|
||||
def is_editable(cls, obj: bpy.types.Object) -> bool:
|
||||
if obj.type not in cls.OBJECT_TYPES_THAT_SUPPORT_EDIT_MODE:
|
||||
return False
|
||||
if not (element := tool.Ifc.get_entity(obj)):
|
||||
|
||||
@@ -327,4 +327,3 @@ class Pset(bonsai.core.tool.Pset):
|
||||
return value
|
||||
except:
|
||||
return value
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user