Sfoglia il codice sorgente

Assign `extras` from the top-level of glTF definition to `userData` of the result object.

Pairote Leelaphattarakij 7 anni fa
parent
commit
a31d64092e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      examples/js/loaders/GLTFLoader.js

+ 2 - 0
examples/js/loaders/GLTFLoader.js

@@ -1578,6 +1578,8 @@ THREE.GLTFLoader = ( function () {
 
 			addUnknownExtensionsToUserData( extensions, result, json );
 
+			assignExtrasToUserData( result, json );
+
 			onLoad( result );
 
 		} ).catch( onError );

粤ICP备19079148号