Skip to content

Commit

Permalink
Bugfix for godotengine#305
Browse files Browse the repository at this point in the history
  • Loading branch information
mourning20s committed Jan 22, 2020
1 parent 9724457 commit c8c7477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io_scene_godot/converters/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def to_mesh(self, triangulate=True, preserve_vertex_groups=True,
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()
Expand Down

0 comments on commit c8c7477

Please sign in to comment.