- refactored the is_legacy object to use_3d_engine

- made sure that there is no longer a double action when toggling the object visibility ('plot' attribute)
This commit is contained in:
Marius Stanciu
2021-10-31 14:05:00 +02:00
committed by Marius
parent 25bca44996
commit bb089eb657
34 changed files with 321 additions and 366 deletions

View File

@@ -725,7 +725,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
self.endRemoveRows()
# ############ OBJECT DELETION FROM MODEL STOPS HERE ####################
if self.app.is_legacy is False:
if self.app.use_3d_engine:
self.app.plotcanvas.redraw()
if select_project:
@@ -778,7 +778,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
self.endRemoveRows()
# ############ OBJECT DELETION FROM MODEL STOPS HERE ####################
if self.app.is_legacy is False:
if self.app.use_3d_engine:
self.app.plotcanvas.redraw()
if select_project: