Explorar o código

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

Pairote Leelaphattarakij %!s(int64=7) %!d(string=hai) anos
pai
achega
a31d64092e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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号