浏览代码

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