From f8bfa888cf6a7812a95be1fdfd4a21f7e8922584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Renaud-Houde?= Date: Tue, 10 Oct 2023 20:43:27 -0400 Subject: [PATCH] Fix missing cache id reset on look update. (#1873) Signed-off-by: Eric Renaud-Houde Signed-off-by: Doug Walker --- src/OpenColorIO/Config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/OpenColorIO/Config.cpp b/src/OpenColorIO/Config.cpp index f09b9ee71e..1a2307dd50 100644 --- a/src/OpenColorIO/Config.cpp +++ b/src/OpenColorIO/Config.cpp @@ -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; } }