OpenToonz - An open-source full-featured 2D animation creation software
C
Fix autocreation preferences turning on accidentally (#397)
manongjohn9a21a85c5cc9
diff --git a/toonz/sources/toonz/cellselection.cpp b/toonz/sources/toonz/cellselection.cppindex 9452959dc..bc72f33c7 100644--- a/toonz/sources/toonz/cellselection.cpp+++ b/toonz/sources/toonz/cellselection.cpp@@ -2403,6 +2403,11 @@ void TCellSelection::createBlankDrawing(int row, int col, bool multiple) {}if (!toolHandle->getTool()->m_isFrameCreated) {+ if (!isAutoCreateEnabled)+ Preferences::instance()->setValue(EnableAutocreation, false, false);+ if (!isCreationInHoldCellsEnabled)+ Preferences::instance()->setValue(EnableCreationInHoldCells, false,+ false);if (!multiple)DVGui::warning(QObject::tr("Unable to replace the current drawing with a blank drawing"));@@ -2544,6 +2549,11 @@ void TCellSelection::duplicateFrame(int row, int col, bool multiple) {bool frameCreated = toolHandle->getTool()->m_isFrameCreated;if (!frameCreated) {+ if (!isAutoCreateEnabled)+ Preferences::instance()->setValue(EnableAutocreation, false, false);+ if (!isCreationInHoldCellsEnabled)+ Preferences::instance()->setValue(EnableCreationInHoldCells, false,+ false);if (!multiple)DVGui::warning(QObject::tr("Unable to replace the current or next drawing with a "