Browse Source

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

Pairote Leelaphattarakij 6 years ago
parent
commit
a31d64092e
1 changed files with 2 additions and 0 deletions
  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 );