Browse Source

Triangle: Improve closure variable check.

Mugen87 6 years ago
parent
commit
bea4397fc5
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();