- in Distance Plugin finished the 'big cursor' feature
This commit is contained in:
@@ -10,6 +10,7 @@ CHANGELOG for FlatCAM Evo beta
|
|||||||
28.03.2022
|
28.03.2022
|
||||||
|
|
||||||
- in Distance Plugin added the ability to use a big cursor; not finished: when the grid is off it is not displayed
|
- in Distance Plugin added the ability to use a big cursor; not finished: when the grid is off it is not displayed
|
||||||
|
- in Distance Plugin finished the 'big cursor' feature
|
||||||
|
|
||||||
27.03.2022
|
27.03.2022
|
||||||
|
|
||||||
|
|||||||
@@ -188,6 +188,7 @@ class Distance(AppTool):
|
|||||||
self.initial_view()
|
self.initial_view()
|
||||||
|
|
||||||
if self.ui.big_cursor_cb.get_value():
|
if self.ui.big_cursor_cb.get_value():
|
||||||
|
self.app.app_cursor.enabled = True
|
||||||
self.app.on_cursor_type(val="big", control_cursor=True)
|
self.app.on_cursor_type(val="big", control_cursor=True)
|
||||||
|
|
||||||
self.app.call_source = 'measurement'
|
self.app.call_source = 'measurement'
|
||||||
@@ -561,6 +562,8 @@ class Distance(AppTool):
|
|||||||
if grid_snap_state:
|
if grid_snap_state:
|
||||||
pos = self.app.geo_editor.snap(pos_canvas[0], pos_canvas[1])
|
pos = self.app.geo_editor.snap(pos_canvas[0], pos_canvas[1])
|
||||||
else:
|
else:
|
||||||
|
if self.app.app_cursor.enabled is False:
|
||||||
|
self.app.app_cursor.enabled = True
|
||||||
pos = (pos_canvas[0], pos_canvas[1])
|
pos = (pos_canvas[0], pos_canvas[1])
|
||||||
# Update cursor
|
# Update cursor
|
||||||
self.app.app_cursor.set_data(np.asarray([(pos[0], pos[1])]),
|
self.app.app_cursor.set_data(np.asarray([(pos[0], pos[1])]),
|
||||||
|
|||||||
Reference in New Issue
Block a user