Преглед на файлове

Merge pull request #16735 from pairote/fix-missing-assign-extras-to-userdata-from-top-level-gltf

GLTFLoader: Assign `extras` from the top-level of glTF definition to `userData` of the result object
Mr.doob преди 6 години
родител
ревизия
6737d0dfe3
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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 );