Skip to content

Commit

Permalink
Fix undefined normals introduced by #6
Browse files Browse the repository at this point in the history
Silly mistake - facenormals never computed, even when not supplied
  • Loading branch information
stockhuman committed Mar 19, 2020
1 parent 011e916 commit 642654e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/ConvexPolyhedron.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class ConvexPolyhedron extends Shape {
*/
this.faceNormals = normals

if (this.faceNormals == []) {
if (this.faceNormals.length == 0) {
this.computeNormals()
}

Expand Down

0 comments on commit 642654e

Please sign in to comment.