From 1e1817d96a1a04b68589439efc6352ae0a994868 Mon Sep 17 00:00:00 2001 From: manongjohn Date: Dec 25 2018 03:13:47 +0000 Subject: Fix restoring erase tool crash (#2389) --- diff --git a/toonz/sources/tnztools/fullcolorerasertool.cpp b/toonz/sources/tnztools/fullcolorerasertool.cpp index efb986c..5b6722e 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();