Skip to content

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
bool indexed_=false)
: 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