Skip to content

Commit

Permalink
Merge pull request #1435 from dj-mcg/pr/USE_NEW_SCHEMAREGISTRY_API
Browse files Browse the repository at this point in the history
Pr/use new schemaregistry api
  • Loading branch information
Krystian Ligenza authored May 27, 2021
2 parents b3dd25a + 1ad20a2 commit 7a8e6e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ See Pixar's official github page for instructions on how to build USD: https://g

| | ![](images/pxr.png) |
|:------------: |:---------------: |
| CommitID/Tags | release: [v20.02](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.02) or [v20.05](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.05) or [v20.08](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.08) or [v20.11](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.11) or [v21.02](https://github.com/PixarAnimationStudios/USD/releases/tag/v21.02) or [v21.05](https://github.com/PixarAnimationStudios/USD/releases/tag/v21.05)<br> dev: [d9580db](https://github.com/PixarAnimationStudios/USD/commit/d9580dbec274cc9e6028646582153ca9844527ed) |
| CommitID/Tags | release: [v20.02](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.02) or [v20.05](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.05) or [v20.08](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.08) or [v20.11](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.11) or [v21.02](https://github.com/PixarAnimationStudios/USD/releases/tag/v21.02) or [v21.05](https://github.com/PixarAnimationStudios/USD/releases/tag/v21.05)<br> dev: [2095f6c](https://github.com/PixarAnimationStudios/USD/commit/2095f6cc5ac08b19d6a00308f33c0bbd27cffc35) |

For additional information on building Pixar USD, see the ***Additional Build Instruction*** section below.

Expand Down
5 changes: 4 additions & 1 deletion lib/mayaUsd/resources/ae/usdschemabase/ae_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,10 @@ def createAppliedSchemasSection(self):
schemaAttrsDict = {}
appliedSchemas = self.prim.GetAppliedSchemas()
for schema in appliedSchemas:
typeAndInstance = Usd.SchemaRegistry().GetTypeAndInstance(schema)
if Usd.GetVersion() > (0, 21, 5):
typeAndInstance = Usd.SchemaRegistry().GetTypeNameAndInstance(schema)
else:
typeAndInstance = Usd.SchemaRegistry().GetTypeAndInstance(schema)
typeName = typeAndInstance[0]
schemaType = Usd.SchemaRegistry().GetTypeFromName(typeName)

Expand Down

0 comments on commit 7a8e6e8

Please sign in to comment.