Browse Source

Merge pull request #17182 from Mugen87/dev31

Triangle: Improve closure variable check.
Michael Herzog 6 years ago
parent
commit
162d99e9c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/math/Triangle.js

+ 1 - 1
src/math/Triangle.js

@@ -48,7 +48,7 @@ Object.assign( Triangle, {
 	// based on: http://www.blackpawn.com/texts/pointinpoly/default.html
 	getBarycoord: function ( point, a, b, c, target ) {
 
-		if ( _v1 === undefined ) {
+		if ( _v2 === undefined ) {
 
 			_v0 = new Vector3();
 			_v1 = new Vector3();