File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,12 @@ class ThreeMFLoader extends Loader {
132132
133133 modelRelsName = file ;
134134
135- } else if ( file . match ( / ^ 3 D \/ .* \. m o d e l $ / ) ) {
135+ } else if ( file . match ( / ^ 3 D \/ [ ^ \/ ] * \. m o d e l $ / ) ) {
136+ // root model
137+ rootModelFile = file ;
136138
139+ } else if ( file . match ( / ^ 3 D \/ .* \/ .* \. m o d e l $ / ) ) {
140+ // sub models
137141 modelPartNames . push ( file ) ;
138142
139143 } else if ( file . match ( / ^ 3 D \/ T e x t u r e s ? \/ .* / ) ) {
@@ -1468,7 +1472,7 @@ class ThreeMFLoader extends Loader {
14681472 const modelsData = data3mf . model ;
14691473 const modelRels = data3mf . modelRels ;
14701474 const objects = { } ;
1471- const modelsKeys = Object . keys ( modelsData ) . reverse ( ) ;
1475+ const modelsKeys = Object . keys ( modelsData ) ;
14721476 const textureData = { } ;
14731477
14741478 // evaluate model relationships to textures
You can’t perform that action at this time.
0 commit comments