Skip to content

Commit e3f4523

Browse files
committed
USDComposer: Clean up.
1 parent 73636e3 commit e3f4523

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

examples/jsm/loaders/usd/USDComposer.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -787,16 +787,7 @@ class USDComposer {
787787
if ( ! attrPath.startsWith( prefix ) ) continue;
788788

789789
const attrSpec = this.specsByPath[ attrPath ];
790-
let attrName = attrPath.slice( prefix.length );
791-
792-
// USDA includes type annotations like "token[] joints" or "matrix4d[] bindTransforms"
793-
// Extract the actual attribute name after the type annotation
794-
const typeMatch = attrName.match( /^[a-zA-Z0-9]+(?:\[\])?\s+(.+)$/ );
795-
if ( typeMatch ) {
796-
797-
attrName = typeMatch[ 1 ];
798-
799-
}
790+
const attrName = attrPath.slice( prefix.length );
800791

801792
if ( attrSpec.fields?.default !== undefined ) {
802793

0 commit comments

Comments
 (0)