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

Cleaner code

* Object.assign modifies its first argument
* Conform to threejs' styleguide
Kalacione пре 6 година
родитељ
комит
31fdc56b43
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      examples/js/loaders/GLTFLoader.js

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -1299,7 +1299,7 @@ THREE.GLTFLoader = ( function () {
 
 			if ( typeof gltfDef.extras === 'object' ) {
 
-				object.userData = Object.assign(object.userData, gltfDef.extras);
+				Object.assign( object.userData, gltfDef.extras );
 
 			} else {