Texture support is now compatible with glTF texture maps

This commit is contained in:
Dion Moult
2022-02-09 11:34:59 +11:00
parent 4eaf0e7a9c
commit dd7a47ab99
19 changed files with 380 additions and 336 deletions
@@ -39,7 +39,7 @@ class Usecase:
select_class = "IfcSurfaceStyleShading"
duplicate_items = [s for s in styles if s.is_a(select_class)]
for duplicate_item in duplicate_items:
self.file.remove(duplicate_item)
ifcopenshell.api.run("style.remove_surface_style", self.file, style=duplicate_item)
styles = list(self.settings["style"].Styles or [])
styles.append(style_item)