Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UsdUtilsFlattenLayerStack to apply the resolveAssetPathFn to clip manifest and asset paths #1266

Conversation

marktucker
Copy link
Contributor

Description of Change(s)

In the _FixAssetPaths function, check for a clip dictionary. If found, update the manifestAssetPath and assetPaths data, also using _FixAssetPaths. Updated the FlattenLayerStack test to validate that the paths are updated. Because the clip times and asset paths are updated independently, this could be made more efficient at the expense of greater code rearrangement and complexity. But, as validated by the test, updating the clip info twice (in _ApplyLayerOffset and again in _FixAssetPaths) does work properly.

Note that this change does not apply the resolve function to the templateAssetPath metadata, because it's not totally clear how that kind of patterned path should be resolved.

Fixes Issue(s)

@jtran56
Copy link

jtran56 commented Jul 17, 2020

Filed as internal issue #USD-6219.

@pixar-oss pixar-oss merged commit 561afeb into PixarAnimationStudios:dev Sep 14, 2020
@marktucker marktucker deleted the dev_flattenlayerstack_clip_asset_paths branch October 22, 2020 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants