浏览代码

Vertex: Legacy support approach suggested by @voidburn. Fixes #2257.

Mr.doob 13 年之前
父节点
当前提交
d18c95cdd0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/core/Vertex.js

+ 2 - 1
src/core/Vertex.js

@@ -2,8 +2,9 @@
  * @author mr.doob / http://mrdoob.com/
  */
 
-THREE.Vertex = function () {
+THREE.Vertex = function ( v ) {
 
 	console.warn( 'THREE.Vertex has been DEPRECATED. Use THREE.Vector3 instead.')
+	return v;
 
 };