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

fromBufferGeometry: using fromArray also for Color

Eran Geva 7 жил өмнө
parent
commit
2326658719

+ 1 - 1
src/core/Geometry.js

@@ -234,7 +234,7 @@ Geometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 
 
 			if ( colors !== undefined ) {
 			if ( colors !== undefined ) {
 
 
-				scope.colors.push( new Color( colors[ i ], colors[ i + 1 ], colors[ i + 2 ] ) );
+				scope.colors.push( new Color().fromArray( colors, i ) );
 
 
 			}
 			}
 
 

粤ICP备19079148号