mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +00:00
typing
This commit is contained in:
@@ -38,8 +38,9 @@ class AttributesData:
|
||||
def attributes(cls):
|
||||
results = []
|
||||
element = tool.Ifc.get_entity(bpy.context.active_object)
|
||||
assert element
|
||||
data = element.get_info()
|
||||
if hasattr(element, "GlobalId"):
|
||||
if "GlobalId" in data:
|
||||
excluded_keys = ["id", "type"]
|
||||
else:
|
||||
excluded_keys = ["type"]
|
||||
|
||||
@@ -41,6 +41,7 @@ class EnableEditingAttributes(bpy.types.Operator):
|
||||
props.attributes.clear()
|
||||
|
||||
element = tool.Ifc.get_entity(obj)
|
||||
assert element
|
||||
has_inherited_predefined_type = False
|
||||
if not element.is_a("IfcTypeObject") and (element_type := ifcopenshell.util.element.get_type(element)):
|
||||
# Allow for None due to https://github.com/buildingSMART/IFC4.3.x-development/issues/818
|
||||
|
||||
Reference in New Issue
Block a user