OpenToonz - An open-source full-featured 2D animation creation software
C
Fix restoring erase tool crash (#2389)
manongjohn1e1817d96a1a
diff --git a/toonz/sources/tnztools/fullcolorerasertool.cpp b/toonz/sources/tnztools/fullcolorerasertool.cppindex efb986c22..5b6722e8a 100644--- a/toonz/sources/tnztools/fullcolorerasertool.cpp+++ b/toonz/sources/tnztools/fullcolorerasertool.cpp@@ -526,6 +526,8 @@ void FullColorEraserTool::leftButtonDown(const TPointD &pos,void FullColorEraserTool::leftButtonDrag(const TPointD &pos,const TMouseEvent &e) {+ if (!m_mousePressed) return;+m_brushPos = m_mousePos = pos;m_mouseEvent = e;double pixelSize2 = getPixelSize() * getPixelSize();