This commit is contained in:
Andrej730
2024-12-27 13:39:55 +05:00
parent c770776228
commit 19c1394d94
5 changed files with 20 additions and 20 deletions
@@ -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