Browse Source

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

Mr.doob 11 năm trước cách đây
mục cha
commit
86c20099a1
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 ];
 
 	},