Explorar o código

USDComposer: Clean up.

Mr.doob hai 1 mes
pai
achega
e3f4523ed8
Modificáronse 1 ficheiros con 1 adicións e 10 borrados
  1. 1 10
      examples/jsm/loaders/usd/USDComposer.js

+ 1 - 10
examples/jsm/loaders/usd/USDComposer.js

@@ -787,16 +787,7 @@ class USDComposer {
 			if ( ! attrPath.startsWith( prefix ) ) continue;
 			if ( ! attrPath.startsWith( prefix ) ) continue;
 
 
 			const attrSpec = this.specsByPath[ attrPath ];
 			const attrSpec = this.specsByPath[ attrPath ];
-			let attrName = attrPath.slice( prefix.length );
-
-			// USDA includes type annotations like "token[] joints" or "matrix4d[] bindTransforms"
-			// Extract the actual attribute name after the type annotation
-			const typeMatch = attrName.match( /^[a-zA-Z0-9]+(?:\[\])?\s+(.+)$/ );
-			if ( typeMatch ) {
-
-				attrName = typeMatch[ 1 ];
-
-			}
+			const attrName = attrPath.slice( prefix.length );
 
 
 			if ( attrSpec.fields?.default !== undefined ) {
 			if ( attrSpec.fields?.default !== undefined ) {
 
 

粤ICP备19079148号