BLEN-365: Improve creation algorithm of PreviewEngine #21

Merged
Bogdan Nagirniak merged 11 commits from BLEN-365 into hydra-render 2023-04-10 12:44:48 +02:00
Showing only changes of commit a4286c6fd4 - Show all commits

View File

@ -437,11 +437,11 @@ pxr::VtValue BlenderSceneDelegate::GetLightParamValue(pxr::SdfPath const &id,
void BlenderSceneDelegate::clear()
{
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) {
it->second->remove_prim();
it->second->remove();
}
materials.clear();