Skip to content

Commit

Permalink
Add mesh name to n-gon warning message.
Browse files Browse the repository at this point in the history
This makes it easier for the user to figure out which mesh was
troublesome.
  • Loading branch information
Ryan Roden-Corrent committed Jan 4, 2021
1 parent cffee6b commit c0d5ac9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions io_scene_godot/converters/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ def to_mesh(self, preserve_vertex_groups=True,
except RuntimeError:
# Mesh must have n-gons
logging.warning(
"Mesh had n-gons and had to be triangulated to "
"calculate tangents; n-gons may look wrong."
"Mesh '%s' had n-gons and had to be triangulated "
"to calculate tangents; n-gons may look wrong.",
mesh.name
)
triangulate_ngons(mesh)
mesh.calc_tangents()
Expand Down

0 comments on commit c0d5ac9

Please sign in to comment.