Fix visibility of instancer object #43

Merged
Bogdan Nagirniak merged 16 commits from BLEN-405_1 into hydra-render 2023-05-24 13:44:35 +02:00
Showing only changes of commit 5fb5542577 - Show all commits

View File

@ -106,7 +106,6 @@ bool InstancerData::update_visibility(Object *child_object)
bool prev_visible = visible; bool prev_visible = visible;
visible = is_visible(scene_delegate_, (Object *)id, child_object); visible = is_visible(scene_delegate_, (Object *)id, child_object);
bool ret = visible != prev_visible; bool ret = visible != prev_visible;
if (ret) { if (ret) {
auto &change_tracker = scene_delegate_->GetRenderIndex().GetChangeTracker(); auto &change_tracker = scene_delegate_->GetRenderIndex().GetChangeTracker();
change_tracker.MarkInstancerDirty(prim_id, pxr::HdChangeTracker::DirtyVisibility); change_tracker.MarkInstancerDirty(prim_id, pxr::HdChangeTracker::DirtyVisibility);