소스 검색

BufferGeometry: Added getAttribute().
Didn't like how the user code looked when relying on addAttribute returning it...

Mr.doob 11 년 전
부모
커밋
86c20099a1
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/core/BufferGeometry.js

+ 4 - 0
src/core/BufferGeometry.js

@@ -52,6 +52,10 @@ THREE.BufferGeometry.prototype = {
 
 		}
 
+	},
+
+	getAttribute: function ( name ) {
+
 		return this.attributes[ name ];
 
 	},