From 2bcf9d432c482ac789ecae8c60558aaaa5b42b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Thu, 27 Jun 2024 15:04:53 +0200 Subject: [PATCH] [core] Graph: Remove `selectedViewpoint` property The information that this property conveys will be accessible at an upper level and is thus redundant here. --- meshroom/core/graph.py | 8 -------- meshroom/ui/reconstruction.py | 1 - 2 files changed, 9 deletions(-) diff --git a/meshroom/core/graph.py b/meshroom/core/graph.py index 23df54f2..e1f05787 100644 --- a/meshroom/core/graph.py +++ b/meshroom/core/graph.py @@ -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 diff --git a/meshroom/ui/reconstruction.py b/meshroom/ui/reconstruction.py index c331a97f..2e3f70c5 100755 --- a/meshroom/ui/reconstruction.py +++ b/meshroom/ui/reconstruction.py @@ -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):