Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix no icon for newly created blank frames (#111)

manongjohn04167373b78f
diff --git a/toonz/sources/toonz/cellselection.cpp b/toonz/sources/toonz/cellselection.cpp
index 27a622999..8d0ec1bde 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);