Move to use blender::Map container instead std::unordered_map #47

Merged
Bogdan Nagirniak merged 17 commits from Vasyl-Pidhirskyi/blender_bn:BLEN-418 into hydra-render 2023-06-02 12:02:46 +02:00
Showing only changes of commit f850776aef - Show all commits

View File

@ -385,11 +385,11 @@ void InstancerData::write_instances()
/* Remove mesh intances without indices */ /* Remove mesh intances without indices */
mesh_instances_.remove_if([&](auto item) { mesh_instances_.remove_if([&](auto item) {
bool res = item.value.indices.empty(); bool res = item.value.indices.empty();
if (res){ if (res) {
item.value.data->remove(); item.value.data->remove();
} }
return item.value.indices.empty(); return res;
}); });
/* Update light intances and remove instances without transforms */ /* Update light intances and remove instances without transforms */