mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-31 07:18:25 +02:00
[ui] reset depthmap node when camerainit change
This commit is contained in:
parent
7bea135993
commit
a37ecc189c
1 changed files with 5 additions and 0 deletions
|
@ -389,6 +389,7 @@ class Reconstruction(UIGraph):
|
|||
|
||||
# - Depth Map
|
||||
self._depthMap = None
|
||||
self.cameraInitChanged.connect(self.updateDepthMapNode)
|
||||
|
||||
# - Texturing
|
||||
self._texturing = None
|
||||
|
@ -486,6 +487,10 @@ class Reconstruction(UIGraph):
|
|||
""" Set the current FeatureExtraction node based on the current CameraInit node. """
|
||||
self.featureExtraction = self.lastNodeOfType('FeatureExtraction', self.cameraInit) if self.cameraInit else None
|
||||
|
||||
def updateDepthMapNode(self):
|
||||
""" Set the current FeatureExtraction node based on the current CameraInit node. """
|
||||
self.depthMap = self.lastNodeOfType('DepthMapFilter', self.cameraInit) if self.cameraInit else None
|
||||
|
||||
def lastSfmNode(self):
|
||||
""" Retrieve the last SfM node from the initial CameraInit node. """
|
||||
return self.lastNodeOfType("StructureFromMotion", self._cameraInit, Status.SUCCESS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue