Skip to content

Commit

Permalink
Bug in findClosestVertex method
Browse files Browse the repository at this point in the history
Fixes a bug in `findClosestVertex` method.
The vertex should be cloned before changing it from local to world space
  • Loading branch information
Wilt authored Aug 30, 2016
1 parent 4edd711 commit 78bcf1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions threeoctree.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@

}

return object.localToWorld(vertex);
return object.localToWorld(vertex.clone());

},

Expand Down Expand Up @@ -2204,4 +2204,4 @@

};

}( THREE ) );
}( THREE ) );

0 comments on commit 78bcf1c

Please sign in to comment.