forked from blender/blender
Move to use blender::Map container instead std::unordered_map #47
@ -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) {
|
||||||
Vasyl-Pidhirskyi marked this conversation as resolved
Outdated
|
|||||||
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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user
missed
.data->remove()
?