mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Use should_use_presentation_style_assignment
This commit is contained in:
@@ -88,7 +88,7 @@ def assign_item_style(
|
||||
if not (styled_item := next(iter(item.StyledByItem), None)):
|
||||
if style is None:
|
||||
return
|
||||
if file.schema == "IFC2X3":
|
||||
if file.schema == "IFC2X3" or should_use_presentation_style_assignment:
|
||||
style = file.create_entity("IfcPresentationStyleAssignment", (style,))
|
||||
return file.create_entity("IfcStyledItem", item, (style,))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user