Răsfoiți Sursa

Merge pull request #19464 from bergden-resonai/patch-2

Bug fix in toNonIndexed - normalized
Mr.doob 5 ani în urmă
părinte
comite
4869ef0217
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/core/BufferGeometry.js

+ 2 - 1
src/core/BufferGeometry.js

@@ -891,6 +891,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
 
 			var array = attribute.array;
 			var itemSize = attribute.itemSize;
+			var normalized = attribute.normalized;
 
 			var array2 = new array.constructor( indices.length * itemSize );
 
@@ -908,7 +909,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
 
 			}
 
-			return new BufferAttribute( array2, itemSize );
+			return new BufferAttribute( array2, itemSize, normalized );
 
 		}