diff --git a/toonz/sources/tnztools/geometrictool.cpp b/toonz/sources/tnztools/geometrictool.cpp index b963b08..7c97691 100644 --- a/toonz/sources/tnztools/geometrictool.cpp +++ b/toonz/sources/tnztools/geometrictool.cpp @@ -776,6 +776,11 @@ public: void mouseMove(const TPointD &pos, const TMouseEvent &e) override; bool keyDown(QKeyEvent *event) override; void onEnter() override; + void onDeactivate() override { + delete m_stroke; + m_hasLastStroke = false; + m_clickNumber = 0; + } }; //=============================================================================