Skip to content

Commit

Permalink
Fix testUsdUtilsUpdateSchemaWithSdrNode caused by a typo
Browse files Browse the repository at this point in the history
(Internal change: 2219367)
  • Loading branch information
tallytalwar authored and pixar-oss committed Mar 4, 2022
1 parent 7a1f1e2 commit 2e443cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxr/usd/usdUtils/updateSchemaWithSdrNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _CreateAttrSpecFromNodeAttribute(primSpec, prop, primDefForAttrPruning,

defaultValue = prop.GetDefaultValueAsSdfType()
if (attrType == Sdf.ValueTypeNames.String or
attrType == Sdf.ValueTypeNames.Tokens) and defaultValue is not None:
attrType == Sdf.ValueTypeNames.Token) and defaultValue is not None:
attrSpec.default = defaultValue.replace('"', r'\"')
else:
attrSpec.default = defaultValue
Expand Down

0 comments on commit 2e443cb

Please sign in to comment.