Skip to content

Commit

Permalink
Removing NeedsUpdate check when setting primvars on the Point Instanc…
Browse files Browse the repository at this point in the history
…er. (#760)

Fixes #759
  • Loading branch information
sirpalee authored Apr 21, 2021
1 parent abe0890 commit 8eafab7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions render_delegate/instancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,8 @@ void HdArnoldInstancer::SetPrimvars(AtNode* node, const SdfPath& prototypeId, si
VtIntArray instanceIndices;
for (auto& primvar : _primvars) {
auto& desc = primvar.second;
if (!desc.NeedsUpdate()) {
continue;
}
// We don't need to call NeedsUpdate here, as this function is called once per Prototype, not
// once per instancer.
if (instanceIndices.empty()) {
instanceIndices = GetDelegate()->GetInstanceIndices(GetId(), prototypeId);
if (instanceIndices.empty() || instanceIndices.size() != instanceCount) {
Expand Down

0 comments on commit 8eafab7

Please sign in to comment.