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: Brooke <[email protected]>
  • Loading branch information
num3ric authored and brkglvn01 committed Oct 23, 2023
1 parent 9f9e94b commit 68aa269
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 68aa269

Please sign in to comment.