[core] Graph: Remove selectedViewpoint property

The information that this property conveys will be accessible at an upper
level and is thus redundant here.
This commit is contained in:
Candice Bentéjac 2024-06-27 15:04:53 +02:00
parent b286c95ccd
commit 2bcf9d432c
2 changed files with 0 additions and 9 deletions

View file

@ -226,8 +226,6 @@ class Graph(BaseObject):
self._fileDateVersion = 0
self.header = {}
self._selectedViewpoint = None
def clear(self):
self.header.clear()
self._compatibilityNodes.clear()
@ -1566,12 +1564,6 @@ class Graph(BaseObject):
self.updateStatusFromCache(force=True)
self.cacheDirChanged.emit()
@property
def selectedViewpoint(self):
""" Return the attribute describing the viewpoint that is
currently set as the 'selected viewpoint'. """
return self._selectedViewpoint
@property
def fileDateVersion(self):
return self._fileDateVersion

View file

@ -1158,7 +1158,6 @@ class Reconstruction(UIGraph):
# Reconstruction has ownership of Viewpoint object - destroy it when not needed anymore
self._selectedViewpoint.deleteLater()
self._selectedViewpoint = ViewpointWrapper(viewpointAttribute, self) if viewpointAttribute else None
self._graph._selectedViewpoint = self._selectedViewpoint.attribute if viewpointAttribute else None
self.selectedViewpointChanged.emit()
def setPickedViewId(self, viewId):