Skip to content

Commit

Permalink
Syncing transformation for the points primitive. (#655)
Browse files Browse the repository at this point in the history
Fixes #654
  • Loading branch information
sirpalee authored Feb 8, 2021
1 parent abbe3b1 commit 67a96b9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion render_delegate/points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ void HdArnoldPoints::Sync(
}
}

auto transformDirtied = false;
if (HdChangeTracker::IsTransformDirty(*dirtyBits, id)) {
param->Interrupt();
HdArnoldSetTransform(_shape.GetShape(), delegate, GetId());
transformDirtied = true;
}

if (HdChangeTracker::IsPrimvarDirty(*dirtyBits, id, HdTokens->widths)) {
param->Interrupt();
HdArnoldSetRadiusFromPrimvar(_shape.GetShape(), id, delegate);
Expand Down Expand Up @@ -98,7 +105,7 @@ void HdArnoldPoints::Sync(
}
}

_shape.Sync(this, *dirtyBits, delegate, param);
_shape.Sync(this, *dirtyBits, delegate, param, transformDirtied);

*dirtyBits = HdChangeTracker::Clean;
}
Expand Down

0 comments on commit 67a96b9

Please sign in to comment.