Merged Beta_8.995 into gerber_editor_upgrade

This commit is contained in:
Marius Stanciu
2022-05-20 01:51:59 +00:00
3 changed files with 6 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class SelectEditorExc(FCShapeTool):
self.sel_storage = AppExcEditor.make_storage()
# make sure that the cursor text from the DrillAdd is deleted
if self.draw_app.app.plotcanvas.text_cursor.parent and self.draw_app.app.use_3d_engine:
if self.draw_app.app.use_3d_engine and self.draw_app.app.plotcanvas.text_cursor.parent:
self.draw_app.app.plotcanvas.text_cursor.parent = None
self.draw_app.app.plotcanvas.view.camera.zoom_callback = lambda *args: None

View File

@@ -1692,7 +1692,7 @@ class FCSelect(DrawTool):
# self.selected = self.draw_app.selected
# make sure that the cursor text from the FCPath is deleted
if self.draw_app.app.plotcanvas.text_cursor.parent and self.draw_app.app.use_3d_engine:
if self.draw_app.app.use_3d_engine and self.draw_app.app.plotcanvas.text_cursor.parent:
self.draw_app.app.plotcanvas.text_cursor.parent = None
self.draw_app.app.plotcanvas.view.camera.zoom_callback = lambda *args: None