Преглед изворни кода

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

Bug fix in toNonIndexed - normalized
Mr.doob пре 5 година
родитељ
комит
4869ef0217
1 измењених фајлова са 2 додато и 1 уклоњено
  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 );
 
 		}