Skip to content

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

C

Fix issues with Create Blank Frames

manongjohneb6df5030aec
diff --git a/toonz/sources/toonz/cellselection.cpp b/toonz/sources/toonz/cellselection.cpp
index e8b2937bd..f4b322591 100644
--- a/toonz/sources/toonz/cellselection.cpp
+++ b/toonz/sources/toonz/cellselection.cpp
@@ -2027,6 +2027,15 @@ void TCellSelection::createBlankDrawing(int row, int col, bool multiple) {
return;
}
+ if (!toolHandle->getTool()->m_isFrameCreated) {
+ if (!multiple)
+ DVGui::warning(QObject::tr(
+ "Unable to replace the current drawing with a blank drawing"));
+ return;
+ }
+
+ sl->setDirtyFlag(true);
+
TPalette *palette = sl->getPalette();
TFrameId frame = cell.getFrameId();