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

Remove interp from primvar descriptor equality check #6

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

tylerm-nv
Copy link
Collaborator

Description of Change(s)

Changing primvar interpolation causes UsdImagingPrimAdapter::_MergePrimvar to insert a duplicate into the descriptor vector. Removed the interp check from the == operator so that it finds the existing primvar.

Fixes Issue(s)

@tylerm-nv tylerm-nv requested a review from asluk November 15, 2022 00:12
@tylerm-nv tylerm-nv changed the title Remove interp from primvar descriptor equality Remove interp from primvar descriptor equality check Nov 15, 2022
@@ -191,8 +191,7 @@ struct HdPrimvarDescriptor {
: name(name_), interpolation(interp_), role(role_), indexed(indexed_)
{ }
bool operator==(HdPrimvarDescriptor const& rhs) const {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll want to add a test, similar to what @nvidia-jomiller did in PixarAnimationStudios#1807, that fails without the change, and passes with it. Thanks!

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.

2 participants