OpenToonz - An open-source full-featured 2D animation creation software
C
Fix single image raster levels
Jeremy Bullockdef79325916d
diff --git a/toonz/sources/toonz/cellselection.cpp b/toonz/sources/toonz/cellselection.cppindex 4fe234dc8..7ce9319ad 100644--- a/toonz/sources/toonz/cellselection.cpp+++ b/toonz/sources/toonz/cellselection.cpp@@ -1987,6 +1987,7 @@ void TCellSelection::pasteDuplicateCells() {// check that the selection only includes types that can be duplicated and// edited+ it = cells.begin();while (it != cells.end()) {if (it->isEmpty()) {it++;@@ -2007,6 +2008,11 @@ void TCellSelection::pasteDuplicateCells() {QObject::tr("Cannot duplicate frames in read only levels"));return;}+ else if (level->getSimpleLevel() && it->getFrameId() == TFrameId::NO_FRAME) {+ DVGui::warning(+ QObject::tr("Can only duplicate frames in image sequence levels."));+ return;+ }}it++;}