Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

add clean-up at the end of SceneViewer::contextMenuEvent

tomo-suzukie6f45b6a60d0
diff --git a/toonz/sources/toonz/sceneviewerevents.cpp b/toonz/sources/toonz/sceneviewerevents.cpp
index 9bb4f03fe..8063ffdb4 100644
--- a/toonz/sources/toonz/sceneviewerevents.cpp
+++ b/toonz/sources/toonz/sceneviewerevents.cpp
@@ -982,6 +982,13 @@ void SceneViewer::contextMenuEvent(QContextMenuEvent *e)
menu->exec(e->globalPos());
delete menu;
+#ifdef MACOSX
+ m_mouseButton = Qt::NoButton;
+ m_tabletEvent = false;
+ m_pressure = 0;
+ m_buttonClicked = false;
+#endif
+
}
//-----------------------------------------------------------------------------