1
0
Эх сурвалжийг харах

Fix BufferAttribute accessors

Tristan VALCKE 9 жил өмнө
parent
commit
9757d97f67

+ 6 - 0
src/core/BufferAttribute.js

@@ -32,6 +32,12 @@ function BufferAttribute( array, itemSize, normalized ) {
 
 
 }
 }
 
 
+Object.defineProperty( BufferAttribute.prototype, "needsUpdate", {
+
+	set: function(value) { if ( value === true ) this.version ++; }
+
+});
+
 Object.assign( BufferAttribute.prototype, {
 Object.assign( BufferAttribute.prototype, {
 
 
 	constructor: BufferAttribute,
 	constructor: BufferAttribute,

粤ICP备19079148号