OpenToonz - An open-source full-featured 2D animation creation software
C
Force all thumbnail icons to refresh when toggling Paint Check.
Martin van Zijl2b9bb14b6985
diff --git a/toonz/sources/toonz/sceneviewer.cpp b/toonz/sources/toonz/sceneviewer.cppindex a28857c35..ec85dddc5 100644--- a/toonz/sources/toonz/sceneviewer.cpp+++ b/toonz/sources/toonz/sceneviewer.cpp@@ -297,6 +297,16 @@ void invalidateIcons() {s.m_paintIndex = mask & ToonzCheck::ePaint ? tc->getColorIndex() : -1;IconGenerator::instance()->setSettings(s);+ // Force icons to refresh+ TXshLevel *sl = TApp::instance()->getCurrentLevel()->getLevel();+ if (sl) {+ std::vector<TFrameId> fids;+ sl->getFids(fids);++ for (int i = 0; i < (int)fids.size(); i++)+ IconGenerator::instance()->invalidate(sl, fids[i]);+ }+// Do not remove icons here as they will be re-used for updating icons in the// level strip