Browse Source

Fix matrix decompose

Garrett Johnson 6 years ago
parent
commit
790b308fb5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/LDrawLoader.js

+ 1 - 1
examples/js/loaders/LDrawLoader.js

@@ -558,9 +558,9 @@ THREE.LDrawLoader = ( function () {
 						if ( parentParseScope.groupObject ) {
 						if ( parentParseScope.groupObject ) {
 
 
 							objGroup.name = parseScope.fileName;
 							objGroup.name = parseScope.fileName;
-							objGroup.matrix.decompose( objGroup.position, objGroup.quaternion, objGroup.scale );
 							objGroup.userData.category = parseScope.category;
 							objGroup.userData.category = parseScope.category;
 							objGroup.userData.keywords = parseScope.keywords;
 							objGroup.userData.keywords = parseScope.keywords;
+							parseScope.matrix.decompose( objGroup.position, objGroup.quaternion, objGroup.scale );
 
 
 							parentParseScope.groupObject.add( objGroup );
 							parentParseScope.groupObject.add( objGroup );