From 04167373b78fee0ec5fd3248eaa1aaa6f70748b7 Mon Sep 17 00:00:00 2001 From: manongjohn Date: Dec 09 2020 09:56:08 +0000 Subject: Fix no icon for newly created blank frames (#111) --- diff --git a/toonz/sources/toonz/cellselection.cpp b/toonz/sources/toonz/cellselection.cpp index 27a6229..8d0ec1b 100644 --- a/toonz/sources/toonz/cellselection.cpp +++ b/toonz/sources/toonz/cellselection.cpp @@ -1238,6 +1238,8 @@ public: void redo() const override { insertLevelAndFrameIfNeeded(); + IconGenerator::instance()->invalidate(m_level.getPointer(), m_frameId); + TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); notifyImageChanged(); } @@ -2419,6 +2421,8 @@ void TCellSelection::createBlankDrawing(int row, int col, bool multiple) { sl, frame, toolHandle->getTool()->m_isLevelCreated, palette); TUndoManager::manager()->add(undo); + IconGenerator::instance()->invalidate(sl, frame); + // Reset back to what these were if (!isAutoCreateEnabled) Preferences::instance()->setValue(EnableAutocreation, false, false);