OpenToonz - An open-source full-featured 2D animation creation software
C
fix: Undo of autocreation in empty cell
Abel Youddd2ab350ec9
diff --git a/toonz/sources/tnztools/fullcolorbrushtool.cpp b/toonz/sources/tnztools/fullcolorbrushtool.cppindex cec1fd5e0..8103a7cb5 100644--- a/toonz/sources/tnztools/fullcolorbrushtool.cpp+++ b/toonz/sources/tnztools/fullcolorbrushtool.cpp@@ -492,8 +492,7 @@ void FullColorBrushTool::inputSetBusy(bool busy) {if (busy) {// begin paintTRasterImageP ri = (TRasterImageP)getImage(true);- if (!ri) ri = (TRasterImageP)touchImage();- if (!ri) return;+ if (!ri) return;// ri = (TRasterImageP)touchImage(); touch in preLeftButtonDownTRasterP ras = ri->getRaster();if (!(m_workRaster && m_backUpRas)) setWorkAndBackupImages();diff --git a/toonz/sources/tnztools/toonzvectorbrushtool.cpp b/toonz/sources/tnztools/toonzvectorbrushtool.cppindex 9874fb3a3..196221972 100644--- a/toonz/sources/tnztools/toonzvectorbrushtool.cpp+++ b/toonz/sources/tnztools/toonzvectorbrushtool.cpp@@ -839,7 +839,7 @@ void ToonzVectorBrushTool::inputSetBusy(bool busy) {if ( app->getCurrentColumn()->getColumnIndex() < 0&& !app->getCurrentFrame()->isEditingLevel() )return;- if (!getImage(true) || !touchImage())+ if (!getImage(true))// Image is touched in preLeftButtonDownreturn;if (!app->getCurrentLevel()->getLevel())return;