-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
needs reviewIssue needing input/review by the repo maintainer (Pixar)Issue needing input/review by the repo maintainer (Pixar)
Description
Description of Issue
Is there any reason why UpdateAssetInfo is not called after layer is saved? Forgetting that may cause out of sync issue for layer's version info if any customized resolver has valid version info needs to be updated.
Steps to Reproduce
from pxr import Usd, Sdf
stage = Usd.Stage.Open("xxxx")
stage.Save()
print(stage.GetRootLayer().version)
stage.DefinePrim("/test")
stage.Save()
print(stage.GetRootLayer().version)
stage.GetRootLayer().UpdateAssetInfo()
print(stage.GetRootLayer().version)
This snippet may not print valid information for stock USD. You can reproduce it with any resolver that has valid version information for a layer (like Omniverse Composer).
System Information (OS, Hardware)
Package Versions
Build Flags
Metadata
Metadata
Assignees
Labels
needs reviewIssue needing input/review by the repo maintainer (Pixar)Issue needing input/review by the repo maintainer (Pixar)