- in Geometry Editor, for Path tool, added the ability to differentiate between creating a multidigit number for the projection and starting a new number (for a new segment)
This commit is contained in:
@@ -14,7 +14,8 @@ CHANGELOG for FlatCAM Evo beta
|
|||||||
- in Geometry Editor for the Path tool fixed an issue with path projection when changing the grid size while the Path tool is active
|
- in Geometry Editor for the Path tool fixed an issue with path projection when changing the grid size while the Path tool is active
|
||||||
- in Geometry Editor, for Path tool, added UI that close on end of the Path tool action; it displays the projected length which now is kept for as long as it is wanted, allowing for path automation in case of repetitive lengths
|
- in Geometry Editor, for Path tool, added UI that close on end of the Path tool action; it displays the projected length which now is kept for as long as it is wanted, allowing for path automation in case of repetitive lengths
|
||||||
- solved a ZeroDivisionError exception in the Geometry Editor -> Path Tool
|
- solved a ZeroDivisionError exception in the Geometry Editor -> Path Tool
|
||||||
|
- in Geometry Editor, for Path tool, added the ability to differentiate between creating a multidigit number for the projection and starting a new number (for a new segment)
|
||||||
|
-
|
||||||
13.04.2022
|
13.04.2022
|
||||||
|
|
||||||
- fixed the display of lines in Distance Plugin when using 'snap to' together with 'multipoint'
|
- fixed the display of lines in Distance Plugin when using 'snap to' together with 'multipoint'
|
||||||
|
|||||||
@@ -955,6 +955,8 @@ class FCPath(FCPolygon):
|
|||||||
|
|
||||||
self.path_tool = PathEditorTool(self.app, self.draw_app)
|
self.path_tool = PathEditorTool(self.app, self.draw_app)
|
||||||
self.path_tool.run()
|
self.path_tool.run()
|
||||||
|
self.new_segment = True
|
||||||
|
|
||||||
self.app.ui.notebook.setTabText(2, _("Path"))
|
self.app.ui.notebook.setTabText(2, _("Path"))
|
||||||
if self.draw_app.app.ui.splitter.sizes()[0] == 0:
|
if self.draw_app.app.ui.splitter.sizes()[0] == 0:
|
||||||
self.draw_app.app.ui.splitter.setSizes([1, 1])
|
self.draw_app.app.ui.splitter.setSizes([1, 1])
|
||||||
@@ -1056,14 +1058,16 @@ class FCPath(FCPolygon):
|
|||||||
QtCore.Qt.Key.Key_Slash, QtCore.Qt.Key.Key_Asterisk]:
|
QtCore.Qt.Key.Key_Slash, QtCore.Qt.Key.Key_Asterisk]:
|
||||||
try:
|
try:
|
||||||
# VisPy keys
|
# VisPy keys
|
||||||
if self.path_tool.length == 0:
|
if self.path_tool.length == 0 or self.new_segment is True:
|
||||||
self.path_tool.length = str(key.name)
|
self.path_tool.length = str(key.name)
|
||||||
|
self.new_segment = False
|
||||||
else:
|
else:
|
||||||
self.path_tool.length = str(self.path_tool.length) + str(key.name)
|
self.path_tool.length = str(self.path_tool.length) + str(key.name)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# Qt keys
|
# Qt keys
|
||||||
if self.path_tool.length == 0:
|
if self.path_tool.length == 0 or self.new_segment is True:
|
||||||
self.path_tool.length = chr(key)
|
self.path_tool.length = chr(key)
|
||||||
|
self.new_segment = False
|
||||||
else:
|
else:
|
||||||
self.path_tool.length = str(self.path_tool.length) + chr(key)
|
self.path_tool.length = str(self.path_tool.length) + chr(key)
|
||||||
|
|
||||||
@@ -1098,6 +1102,7 @@ class FCPath(FCPolygon):
|
|||||||
|
|
||||||
if self.points[-1] != (new_x, new_y):
|
if self.points[-1] != (new_x, new_y):
|
||||||
self.points.append((new_x, new_y))
|
self.points.append((new_x, new_y))
|
||||||
|
self.new_segment = True
|
||||||
self.draw_app.app.on_jump_to(custom_location=(new_x, new_y), fit_center=False)
|
self.draw_app.app.on_jump_to(custom_location=(new_x, new_y), fit_center=False)
|
||||||
if len(self.points) > 0:
|
if len(self.points) > 0:
|
||||||
msg = '%s: %s. %s' % (
|
msg = '%s: %s. %s' % (
|
||||||
|
|||||||
Reference in New Issue
Block a user