Browse Source

Move node association assignment down a few lines

Chris Joel 5 years ago
parent
commit
43b31847ac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/jsm/loaders/GLTFLoader.js

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

@@ -3173,8 +3173,6 @@ var GLTFLoader = ( function () {
 
 			assignExtrasToUserData( node, nodeDef );
 
-			parser.associations.set( node, { type: 'nodes', index: nodeIndex } );
-
 			if ( nodeDef.extensions ) addUnknownExtensionsToUserData( extensions, node, nodeDef );
 
 			if ( nodeDef.matrix !== undefined ) {
@@ -3205,6 +3203,8 @@ var GLTFLoader = ( function () {
 
 			}
 
+			parser.associations.set( node, { type: 'nodes', index: nodeIndex } );
+
 			return node;
 
 		} );