mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Materials UI - display other styles assigned to material besides IfcSurfaceStyle
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user