[ui] Update input to the KeyframeSelection node when a video is dropped

This commit is contained in:
Candice Bentéjac 2023-04-12 15:01:14 +02:00
parent b9649193b1
commit 76329b88e0

View file

@ -712,7 +712,7 @@ class Reconstruction(UIGraph):
if filesByType.videos:
boundingBox = self.layout.boundingBox()
keyframeNode = self.addNewNode("KeyframeSelection", position=Position(boundingBox[0], boundingBox[1] + boundingBox[3]))
keyframeNode.mediaPaths.value = filesByType.videos
keyframeNode.inputPaths.value = filesByType.videos
if len(filesByType.videos) == 1:
newVideoNodeMessage = "New node '{}' added for the input video.".format(keyframeNode.getLabel())
else: