Browse Source

Merge pull request #1 from ikrong/ikrong-patch-1

.getPlane method needs a Plane as a target
krong 5 years ago
parent
commit
9d26212f60
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/math/Triangle.js

+ 2 - 1
src/math/Triangle.js

@@ -1,4 +1,5 @@
 import { Vector3 } from './Vector3.js';
+import { Plane } from './Plane.js';
 
 /**
  * @author bhouston / http://clara.io
@@ -196,7 +197,7 @@ Object.assign( Triangle.prototype, {
 		if ( target === undefined ) {
 
 			console.warn( 'THREE.Triangle: .getPlane() target is now required' );
-			target = new Vector3();
+			target = new Plane();
 
 		}