Materials UI - display other styles assigned to material besides IfcSurfaceStyle

This commit is contained in:
Andrej730
2024-10-04 11:16:02 +05:00
parent 62aef09bc7
commit cab3fd266d
+10 -11
View File
@@ -132,17 +132,16 @@ class MaterialsData:
if not item.is_a("IfcStyledItem"): if not item.is_a("IfcStyledItem"):
continue continue
for style in item.Styles: for style in item.Styles:
if style.is_a("IfcSurfaceStyle"): results.append(
results.append( {
{ "context_type": context.ContextType,
"context_type": context.ContextType, "context_identifier": getattr(context, "ContextIdentifier", ""),
"context_identifier": getattr(context, "ContextIdentifier", ""), "target_view": getattr(context, "TargetView", ""),
"target_view": getattr(context, "TargetView", ""), "name": style.Name or "Unnamed",
"name": style.Name or "Unnamed", "id": style.id(),
"id": style.id(), "context_id": context.id(),
"context_id": context.id(), }
} )
)
return results return results