diff --git a/src/houdini/lib/H_USD/HUSD/HUSD_Imaging.C b/src/houdini/lib/H_USD/HUSD/HUSD_Imaging.C index 8259d161..f2d6a0e6 100644 --- a/src/houdini/lib/H_USD/HUSD/HUSD_Imaging.C +++ b/src/houdini/lib/H_USD/HUSD/HUSD_Imaging.C @@ -1007,15 +1007,18 @@ HUSD_Imaging::updateSettingsIfRequired() } } - for(auto opt : myPrivate->myPrimRenderSettingMap) + if(myValidRenderSettings) { - auto &&it = myPrivate->myCurrentSettings.find(opt.first); - if (it == myPrivate->myCurrentSettings.end() || - it->second != opt.second) + for(auto opt : myPrivate->myPrimRenderSettingMap) { - myPrivate->myImagingEngine->SetRendererSetting(opt.first, - opt.second); - myPrivate->myCurrentSettings[opt.first] = opt.second; + auto &&it = myPrivate->myCurrentSettings.find(opt.first); + if (it == myPrivate->myCurrentSettings.end() || + it->second != opt.second) + { + myPrivate->myImagingEngine->SetRendererSetting(opt.first, + opt.second); + myPrivate->myCurrentSettings[opt.first] = opt.second; + } } } }