Selaa lähdekoodia

Add name field to GLBufferAttribute (#25219)

Mikko Matilainen 2 vuotta sitten
vanhempi
commit
92ad11df84
2 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 5 0
      docs/api/en/core/GLBufferAttribute.html
  2. 2 0
      src/core/GLBufferAttribute.js

+ 5 - 0
docs/api/en/core/GLBufferAttribute.html

@@ -84,6 +84,11 @@
 			Read-only. Always `true`.
 			Read-only. Always `true`.
 		</p>
 		</p>
 
 
+		<h3>[property:String name]</h3>
+		<p>
+		  Optional name for this attribute instance. Default is an empty string.
+		</p>
+
 		<h2>Methods</h2>
 		<h2>Methods</h2>
 
 
 		<h3>[method:this setBuffer]( buffer ) </h3>
 		<h3>[method:this setBuffer]( buffer ) </h3>

+ 2 - 0
src/core/GLBufferAttribute.js

@@ -4,6 +4,8 @@ class GLBufferAttribute {
 
 
 		this.isGLBufferAttribute = true;
 		this.isGLBufferAttribute = true;
 
 
+		this.name = '';
+
 		this.buffer = buffer;
 		this.buffer = buffer;
 		this.type = type;
 		this.type = type;
 		this.itemSize = itemSize;
 		this.itemSize = itemSize;