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 a735cd3b65 - Show all commits

View File

@ -386,7 +386,13 @@ void InstancerData::write_instances()
free_object_duplilist(lb);
/* Remove mesh intances without indices */
mesh_instances_.remove_if([&](auto item) { return item.value.indices.empty(); });
mesh_instances_.remove_if([&](auto item) {
Vasyl-Pidhirskyi marked this conversation as resolved Outdated

missed .data->remove()?

missed `.data->remove()`?
bool res = item.value.indices.empty();
if (res){
item.value.data->remove();
}
return item.value.indices.empty();
});
/* Update light intances and remove instances without transforms */
light_instances_.remove_if([&](auto item) {