Skip to content

Commit

Permalink
Fix possible index error in remove_blender_name_suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
30350n committed Dec 9, 2024
1 parent 39de3fa commit d69a807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcb2blender_importer/materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d69a807

Please sign in to comment.