Pārlūkot izejas kodu

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

Mr.doob 11 gadi atpakaļ
vecāks
revīzija
86c20099a1
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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 ];
 
 	},