浏览代码

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

.getPlane method needs a Plane as a target
krong 5 年之前
父节点
当前提交
9d26212f60
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/math/Triangle.js

+ 2 - 1
src/math/Triangle.js

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