- fixed some issues when editing a multigeo geometry

This commit is contained in:
Marius Stanciu 2019-11-06 00:16:32 +02:00 committed by Marius
parent 14917456ab
commit c7548ee897
2 changed files with 6 additions and 4 deletions

View File

@ -3019,15 +3019,16 @@ class App(QtCore.QObject):
self.ui.splitter.setSizes([0, 1])
if edited_object.multigeo is True:
edited_tools = [int(x.text()) for x in edited_object.ui.geo_tools_table.selectedItems()]
if len(edited_tools) > 1:
sel_rows = [item.row() for item in edited_object.ui.geo_tools_table.selectedItems()]
if len(sel_rows) > 1:
self.inform.emit('[WARNING_NOTCL] %s' %
_("Simultanoeus editing of tools geometry in a MultiGeo Geometry "
_("Simultaneous editing of tools geometry in a MultiGeo Geometry "
"is not possible.\n"
"Edit only one geometry at a time."))
# determine the tool dia of the selected tool
selected_tooldia = float(edited_object.ui.geo_tools_table.item((edited_tools[0] - 1), 1).text())
selected_tooldia = float(edited_object.ui.geo_tools_table.item(sel_rows[0], 1).text())
# now find the key in the edited_object.tools that has this tooldia
multi_tool = 1

View File

@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing.
5.11.2019
- added a new setting named 'Allow Machinist Unsafe Settings' that will allow the Travel Z and Cut Z to take both positive and negative values
- fixed some issues when editing a multigeo geometry
4.11.2019