-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Alembic plugin to read assets with ArResolver to support othe…
…r sources except local files Alembic plugin only accepts assets that are from local paths. In order to fix this, we need to use ArResolver/ArAsset to read/write contents so customized resolver can read assets from other locations. However, interfaces of Alembic library have limitations that can only accept local urls or `std::istream`. This PR uses the following solution: Open assets with `ArResolver`. Instead of reading them into the memory, we get the mapped file path with [ArchGetFileName](https://github.com/PixarAnimationStudios/OpenUSD/blob/59992d21/pxr/base/arch/fileSystem.h#L177) from `ArAsset::GetFileUnsafe`. Fixes #2961 Closes #3302 (Internal change: 2353336)
- Loading branch information
1 parent
d7dc4ad
commit 14f0905
Showing
1 changed file
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters