mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
Merge pull request #2476 from alicevision/fix/updateCameraInit
[ui] setSfm only depends on nodes with category "sfm" and CameraInit should be set only if it is different from the current one
This commit is contained in:
commit
d387b7cf71
1 changed files with 3 additions and 1 deletions
|
@ -627,6 +627,8 @@ class Reconstruction(UIGraph):
|
|||
self.setSelectedViewId(self.viewpoints[0].viewId.value)
|
||||
|
||||
def setCameraInitNode(self, node):
|
||||
if self._cameraInit == node:
|
||||
return
|
||||
self.setCameraInitIndex(self._cameraInits.indexOf(node))
|
||||
|
||||
@Slot()
|
||||
|
@ -1020,7 +1022,7 @@ class Reconstruction(UIGraph):
|
|||
if node.nodeType in nodeTypes:
|
||||
self.activeNodes.getr(category).node = node
|
||||
|
||||
if category == "sfmData":
|
||||
if category == "sfm":
|
||||
self.setSfm(node)
|
||||
|
||||
if node.nodeType == "CameraInit":
|
||||
|
|
Loading…
Add table
Reference in a new issue