Skip to content

Commit

Permalink
Fix missing cache id reset on look update. (#1873)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Renaud-Houde <[email protected]>
  • Loading branch information
num3ric committed Oct 11, 2023
1 parent c7ad353 commit dddbee0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OpenColorIO/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4100,6 +4100,10 @@ void Config::addLook(const ConstLookRcPtr & look)
if(StringUtils::Lower(getImpl()->m_looksList[i]->getName()) == namelower)
{
getImpl()->m_looksList[i] = look->createEditableCopy();

AutoMutex lock(getImpl()->m_cacheidMutex);
getImpl()->resetCacheIDs();

return;
}
}
Expand Down

0 comments on commit dddbee0

Please sign in to comment.