소스 검색

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 {