forked from blender/blender
Move to use blender::Map container instead std::unordered_map #47
@ -386,7 +386,13 @@ void InstancerData::write_instances()
|
|||||||
free_object_duplilist(lb);
|
free_object_duplilist(lb);
|
||||||
|
|
||||||
/* Remove mesh intances without indices */
|
/* 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
|
|||||||
|
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 */
|
/* Update light intances and remove instances without transforms */
|
||||||
light_instances_.remove_if([&](auto item) {
|
light_instances_.remove_if([&](auto item) {
|
||||||
|
Loading…
Reference in New Issue
Block a user
missed
.data->remove()
?