Skip to content

Commit

Permalink
fix: Semantic Tangent data should also be returned when there is no n…
Browse files Browse the repository at this point in the history
…ormal map
  • Loading branch information
06wj committed Oct 30, 2020
1 parent d02d4e8 commit c7b261b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/material/semantic.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,8 @@ const semantic = {
if (Number(normalMap.uv) === 1) {
return mesh.geometry.tangents1;
}
return mesh.geometry.tangents;
}

return undefined;
return mesh.geometry.tangents;
}
},

Expand Down

0 comments on commit c7b261b

Please sign in to comment.