File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -675,12 +675,23 @@ class USDAParser {
675675 // Parse value based on type
676676 const parsedValue = this . _parseAttributeValue ( valueType , rawValue ) ;
677677
678- // Store as attribute spec
678+ // Store as attribute spec, preserving any existing fields
679+ // (e.g. connectionPaths set by an earlier `.connect` form)
679680 const attrPath = path + '.' + attrName ;
680- specsByPath [ attrPath ] = {
681- specType : SpecType . Attribute ,
682- fields : { default : parsedValue , typeName : valueType }
683- } ;
681+
682+ if ( specsByPath [ attrPath ] ) {
683+
684+ specsByPath [ attrPath ] . fields . default = parsedValue ;
685+ specsByPath [ attrPath ] . fields . typeName = valueType ;
686+
687+ } else {
688+
689+ specsByPath [ attrPath ] = {
690+ specType : SpecType . Attribute ,
691+ fields : { default : parsedValue , typeName : valueType }
692+ } ;
693+
694+ }
684695
685696 }
686697
You can’t perform that action at this time.
0 commit comments