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 a bug in UdsGeomImageable::MakeVisible #1043

Merged

Conversation

marktucker
Copy link
Contributor

Fix a bug in UdsGeomImageable::MakeVisible, in which the recursive setting
of the visibility attribute to "inherited" would only be done to the invisible
ancestor prim closest to the root. If other ancestors were also marked as
invisible (redundantly, but legally) the original prim would not end up
being visible.

Description of Change(s)

Reversed the order of a conditional inside the recursive _MakeVisible function so
that the setting of the visibility attribute to "inherited" on ancestors is not short
circuited after the first ancestor has this attribute changed.

Fixes Issue(s)

The provided test case will fail without this change. The prim will not be visible
after calling MakeVisible on it.

…tting

of the visibility attribute to "inherited" would only be done to the invisible
ancestor prim closest to the root. If other ancestors were also marked as
invisible (redundantly, but legally) the original prim would not end up
being visible.
@jilliene
Copy link

Filed as internal issue #USD-5713

@spiffmon
Copy link
Member

spiffmon commented Dec 3, 2019

Thank you for catching and fixing this, @marktucker ! Looks great - the test imports could be cleaned up; I think all you really need is Usd, UsdGeom, and unittest ?

@c64kernal
Copy link
Contributor

Thanks guys! I'll take care of cleaning up the imports in the test (THANK YOU for adding a test!).

pixar-oss added a commit that referenced this pull request Dec 9, 2019
Fix a bug in UdsGeomImageable::MakeVisible

(Internal change: 2027610)
@pixar-oss pixar-oss merged commit b588eda into PixarAnimationStudios:dev Dec 9, 2019
@marktucker marktucker deleted the dev_fix_makevisible branch December 10, 2019 21:09
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.

6 participants