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);
|
||||
|
||||
/* Remove mesh intances without indices */
|
||||
mesh_instances_.remove_if([&](auto item) { return item.value.indices.empty(); });
|
||||
mesh_instances_.remove_if([&](auto item) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user