Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfieldOfView <aldo@fieldofview.com>2018-04-15 13:08:49 +0300
committerLipu Fei <lipu.fei815@gmail.com>2018-04-19 09:32:50 +0300
commit0e85802f9cc32e32e6050763245d6194433b667c (patch)
treefa08a9a0828f9626cfb4c48c0feb2126d58d9cf3 /plugins/SupportEraser
parent9a389bdcdd134ebc429bbd675dbe8cf682e04a79 (diff)
Only respond to left mouse button
Diffstat (limited to 'plugins/SupportEraser')
-rw-r--r--plugins/SupportEraser/SupportEraser.py2
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