- small fix for a bug that interfere with running the 2D graphic mode

This commit is contained in:
Marius Stanciu
2022-05-20 04:51:28 +03:00
committed by Marius
parent c0ff26db13
commit 037a72a594
3 changed files with 6 additions and 2 deletions

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