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() void BlenderSceneDelegate::clear()
{ {
for (auto it = materials.begin(); it != materials.end(); ++it) { for (auto it = materials.begin(); it != materials.end(); ++it) {
DagerD marked this conversation as resolved Outdated
for (auto &it : materials) {
  it.second->remove();
}
``` for (auto &it : materials) { it.second->remove(); } ```
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();