forked from blender/blender
Move to use blender::Map container instead std::unordered_map #47
@ -217,10 +217,13 @@ void BlenderSceneDelegate::clear()
|
|||||||
for (auto &it : instancers_.values()) {
|
for (auto &it : instancers_.values()) {
|
||||||
it->remove();
|
it->remove();
|
||||||
}
|
}
|
||||||
|
for (auto &it : materials_.values()) {
|
||||||
|
it->remove();
|
||||||
|
}
|
||||||
|
|
||||||
objects_.clear();
|
objects_.clear();
|
||||||
instancers_.clear();
|
instancers_.clear();
|
||||||
materials_.clear_and_shrink();
|
materials_.clear();
|
||||||
|
|
||||||
depsgraph = nullptr;
|
depsgraph = nullptr;
|
||||||
context = nullptr;
|
context = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user