Skip to content

Commit

Permalink
USDZLoader: Handle mesh names.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 6, 2022
1 parent b72144e commit 8938d33
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/jsm/loaders/USDZLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,13 @@ class USDZLoader extends Loader {
if ( name.startsWith( 'def Xform' ) ) {

const mesh = buildMesh( root[ name ] );

if ( /def Xform "(\w+)"/.test( name ) ) {

mesh.name = /def Xform "(\w+)"/.exec( name )[ 1 ];

}

group.add( mesh );

}
Expand Down

0 comments on commit 8938d33

Please sign in to comment.