diff --git a/pcb2blender_importer/materials.py b/pcb2blender_importer/materials.py index 0248119..1b202b0 100644 --- a/pcb2blender_importer/materials.py +++ b/pcb2blender_importer/materials.py @@ -75,7 +75,7 @@ def enhance_materials(materials): mat4cad_mat.setup_node_tree(node_tree) def remove_blender_name_suffix(name: str): - if name[-4] != ".": + if name[-4:-3] != ".": return name prefix, suffix = name.rsplit(".", 1)