Skip to content

Commit

Permalink
Matching to Houdini build 18.5.28.
Browse files Browse the repository at this point in the history
  • Loading branch information
SideFX authored and Prisms User committed Nov 13, 2019
1 parent 2b8f3d6 commit 8a86d10
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/houdini/lib/H_USD/HUSD/HUSD_Imaging.C
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
}
Expand Down

0 comments on commit 8a86d10

Please sign in to comment.