Skip to content

Commit

Permalink
Fix missing cache id reset on look update. (AcademySoftwareFoundation…
Browse files Browse the repository at this point in the history
…#1873)

Signed-off-by: Eric Renaud-Houde <[email protected]>
Signed-off-by: Doug Walker <[email protected]>
  • Loading branch information
num3ric authored and doug-walker committed Dec 6, 2023
1 parent 4bde997 commit f8bfa88
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 f8bfa88

Please sign in to comment.