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 some display crashes after resyncing skeletons. #1397

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

cameronwhite
Copy link
Contributor

Description of Change(s)

This fixes an issue where UsdSkelImagingSkeletonAdapter::_RemovePrim() failed to remove skeletons that did not have any bindings to skinned prims, which could lead to crashes later on from accessing expired prims.

UsdSkelImagingSkeletonAdapter::_RemovePrim() checks _skelBindingMap to determine whether the provided path is the skeleton prim. This was inconsistent with UsdSkelImagingSkeletonAdapter::ProcessPrimResync(), which checks _skelDataCache via _GetSkelData(). If there aren't any bindings, the skeleton is in _skelDataCache but not _skelBindingMap.

Fixes Issue(s)

Fixes: #1228, #1248

to remove skeletons that did not have any bindings to skinned prims.

This could lead to crashes later on from accessing expired prims.

UsdSkelImagingSkeletonAdapter::_RemovePrim() checks _skelBindingMap to
determine whether the provided path is the skeleton prim. This was
inconsistent with UsdSkelImagingSkeletonAdapter::ProcessPrimResync(),
which checks _skelDataCache via _GetSkelData(). If there aren't any
bindings, the skeleton is in _skelDataCache but not _skelBindingMap.

Fixes: PixarAnimationStudios#1228, PixarAnimationStudios#1248
@jtran56
Copy link

jtran56 commented Nov 24, 2020

Filed as internal issue #USD-6489

@pixar-oss pixar-oss merged commit c2e43eb into PixarAnimationStudios:dev Dec 10, 2020
@cameronwhite cameronwhite deleted the dev_usdskel_resync branch December 10, 2020 19:56
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.

None yet

4 participants