Эх сурвалжийг харах

Merge pull request #318 from mourning20s/fix-305

Bugfix for #305
Lu Jiacheng 5 жил өмнө
parent
commit
a123e7a0cd

+ 1 - 1
io_scene_godot/converters/utils.py

@@ -155,7 +155,7 @@ class MeshConverter:
             if triangulate:
                 triangulate_mesh(mesh)
 
-            self.has_tangents = mesh.uv_layers and mesh.polygons
+            self.has_tangents = bool(mesh.uv_layers) and bool(mesh.polygons)
             if calculate_tangents:
                 if self.has_tangents:
                     mesh.calc_tangents()