Skip to content

Commit

Permalink
Merge pull request godotengine#390 from rcorre/ngons-warning
Browse files Browse the repository at this point in the history
Add mesh name to n-gon warning message.
  • Loading branch information
Jason0214 committed Jan 5, 2021
2 parents cffee6b + c0d5ac9 commit cc0478a
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 cc0478a

Please sign in to comment.