Ver Fonte

- made sure that in Geometry Editor the self.app.mouse attribute is updated with the current mouse position (x, y)

Marius Stanciu há 6 anos atrás
pai
commit
d256c99385
2 ficheiros alterados com 2 adições e 0 exclusões
  1. 1 0
      README.md
  2. 1 0
      flatcamEditors/FlatCAMGeoEditor.py

+ 1 - 0
README.md

@@ -16,6 +16,7 @@ CAD program, and create G-Code for Isolation routing.
 - fixed the Defaults upgrade overwrting the new version number with the old one
 - fixed issue with clear_polygon3() - the one who makes 'lines' and fixed the NCC Tool
 - some small changes in the FlatCAMGeoemtry.on_tool_add() method
+- made sure that in Geometry Editor the self.app.mouse attribute is updated with the current mouse position (x, y)
 
 15.12.2019
 

+ 1 - 0
flatcamEditors/FlatCAMGeoEditor.py

@@ -3835,6 +3835,7 @@ class FlatCAMGeoEditor(QtCore.QObject):
 
         self.snap_x = x
         self.snap_y = y
+        self.app.mouse = [x, y]
 
         # update the position label in the infobar since the APP mouse event handlers are disconnected
         self.app.ui.position_label.setText("&nbsp;&nbsp;&nbsp;&nbsp;<b>X</b>: %.4f&nbsp;&nbsp;   "