diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a7e4865..d051f54a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 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 - +- 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 - fixed the display of lines in Distance Plugin when using 'snap to' together with 'multipoint' diff --git a/appEditors/AppGeoEditor.py b/appEditors/AppGeoEditor.py index 841d1938..f41c2c27 100644 --- a/appEditors/AppGeoEditor.py +++ b/appEditors/AppGeoEditor.py @@ -955,6 +955,8 @@ class FCPath(FCPolygon): self.path_tool = PathEditorTool(self.app, self.draw_app) self.path_tool.run() + self.new_segment = True + self.app.ui.notebook.setTabText(2, _("Path")) if self.draw_app.app.ui.splitter.sizes()[0] == 0: 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]: try: # 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.new_segment = False else: self.path_tool.length = str(self.path_tool.length) + str(key.name) except AttributeError: # 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.new_segment = False else: 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): 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) if len(self.points) > 0: msg = '%s: %s. %s' % (