forked from blender/blender
Fix visibility of instancer object #43
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user