Explorar el Código

Merge pull request #390 from rcorre/ngons-warning

Add mesh name to n-gon warning message.
Lu Jiacheng hace 4 años
padre
commit
cc0478a931
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      io_scene_godot/converters/utils.py

+ 3 - 2
io_scene_godot/converters/utils.py

@@ -161,8 +161,9 @@ class MeshConverter:
                     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()