forked from blender/blender
BLEN-365: Improve creation algorithm of PreviewEngine #21
@ -437,11 +437,11 @@ pxr::VtValue BlenderSceneDelegate::GetLightParamValue(pxr::SdfPath const &id,
|
|||||||
void BlenderSceneDelegate::clear()
|
void BlenderSceneDelegate::clear()
|
||||||
{
|
{
|
||||||
for (auto it = materials.begin(); it != materials.end(); ++it) {
|
for (auto it = materials.begin(); it != materials.end(); ++it) {
|
||||||
it->second->remove_prim();
|
it->second->remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto it = objects.begin(); it != objects.end(); ++it) {
|
for (auto it = objects.begin(); it != objects.end(); ++it) {
|
||||||
it->second->remove_prim();
|
it->second->remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
materials.clear();
|
materials.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user