diff options
author | fieldOfView <aldo@fieldofview.com> | 2018-04-15 13:08:49 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2018-04-19 09:32:50 +0300 |
commit | 0e85802f9cc32e32e6050763245d6194433b667c (patch) | |
tree | fa08a9a0828f9626cfb4c48c0feb2126d58d9cf3 /plugins/SupportEraser | |
parent | 9a389bdcdd134ebc429bbd675dbe8cf682e04a79 (diff) |
Only respond to left mouse button
Diffstat (limited to 'plugins/SupportEraser')
-rw-r--r-- | plugins/SupportEraser/SupportEraser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SupportEraser/SupportEraser.py b/plugins/SupportEraser/SupportEraser.py index 7884ca30c7..f1306df04c 100644 --- a/plugins/SupportEraser/SupportEraser.py +++ b/plugins/SupportEraser/SupportEraser.py @@ -56,7 +56,7 @@ class SupportEraser(Tool): modifiers = QApplication.keyboardModifiers() ctrl_is_active = modifiers & Qt.ControlModifier - if event.type == Event.MousePressEvent and self._controller.getToolsEnabled(): + if event.type == Event.MousePressEvent and MouseEvent.LeftButton in event.buttons and self._controller.getToolsEnabled(): if ctrl_is_active: self._controller.setActiveTool("TranslateTool") return |