Change log severity for better maintability #50

Merged
Bogdan Nagirniak merged 6 commits from Vasyl-Pidhirskyi/blender_bn:BLEN-422 into hydra-render 2023-06-05 19:46:21 +02:00
Showing only changes of commit fc95eb94cc - Show all commits

View File

@ -116,6 +116,7 @@ bool InstancerData::update_visibility()
bool ret = visible != prev_visible;
if (ret) {
ID_LOG(2, "");
Vasyl-Pidhirskyi marked this conversation as resolved Outdated

InstancerData init, remove, update/update_visibility -> 1

InstancerData init, remove, update/update_visibility -> 1
auto &change_tracker = scene_delegate_->GetRenderIndex().GetChangeTracker();
change_tracker.MarkInstancerDirty(prim_id, pxr::HdChangeTracker::DirtyVisibility);
for (auto &it : mesh_instances_) {
@ -133,7 +134,6 @@ bool InstancerData::update_visibility()
}
}
}
Vasyl-Pidhirskyi marked this conversation as resolved Outdated

Should it be moved inside if (ret) {?

Should it be moved inside `if (ret) {`?
ID_LOG(2, "");
return ret;
}