mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Fixed error on saving styles without textures after 3aff29dec
This commit is contained in:
@@ -183,6 +183,8 @@ class Style(blenderbim.core.tool.Style):
|
|||||||
|
|
||||||
texture_maps = TEXTURE_MAPS_BY_METHODS[style_data["ReflectanceMethod"]]
|
texture_maps = TEXTURE_MAPS_BY_METHODS[style_data["ReflectanceMethod"]]
|
||||||
unused_texture_maps = list(STYLE_TEXTURE_PROPS_MAP.keys())
|
unused_texture_maps = list(STYLE_TEXTURE_PROPS_MAP.keys())
|
||||||
|
|
||||||
|
if texture_style:
|
||||||
for texture in texture_style.Textures:
|
for texture in texture_style.Textures:
|
||||||
if texture.Mode not in texture_maps:
|
if texture.Mode not in texture_maps:
|
||||||
print(f"WARNING. Unsupported texture mode: {texture.Mode}. Supported maps: {texture_maps}")
|
print(f"WARNING. Unsupported texture mode: {texture.Mode}. Supported maps: {texture_maps}")
|
||||||
|
|||||||
Reference in New Issue
Block a user