chiark / gitweb /
Only draw the GCode layers when they are on screen, to remove the slowdown in model...
[cura.git] / Cura / gui / projectPlanner.py
index 377bd9972242f04d46bc7a6a093dac841bd8d827..863c3ddae378c69c71ded901e6be62d41c7e79d9 100644 (file)
@@ -631,6 +631,10 @@ class PreviewGLCanvas(openglGui.glGuiPanel):
                        p1 -= self.getObjectCenterPos() - self.viewTarget
                        if not e.Dragging() or self.dragType != 'tool':
                                self.parent.tool.OnMouseMove(p0, p1)
+               else:
+                       p0 = [0,0,0]
+                       p1 = [1,0,0]
+
                if self.allowDrag and e.Dragging() and e.LeftIsDown():
                        if self.dragType == '':
                                #Define the drag type depending on the cursor position.