소스 검색

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;
 
 };