chiark / gitweb /
Only draw the GCode layers when they are on screen, to remove the slowdown in model...
[cura.git] / Cura / gui / util / openglGui.py
index ee1426db9d785d640c6ddf62369ae636d74106a4..1f5900ce83395cfbbc6e19956ea5f1cc99126c69 100644 (file)
@@ -35,10 +35,12 @@ class glGuiPanel(glcanvas.GLCanvas):
 
        def _OnGuiMouseMotion(self,e):
                self.Refresh()
+               handled = False
                for ctrl in self._glGuiControlList:
                        if ctrl.OnMouseMotion(e.GetX(), e.GetY()):
-                               return
-               self.OnMouseMotion(e)
+                               handled = True
+               if not handled:
+                       self.OnMouseMotion(e)
 
        def _OnGuiPaint(self, e):
                h = self.GetSize().GetHeight()