mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-24 06:26:29 +02:00
Merge pull request #1897 from alicevision/dev/improveClearImages
[ui] Improve "Clear Images" action's behaviour and performance
This commit is contained in:
commit
ea323edb83
3 changed files with 66 additions and 21 deletions
|
@ -733,6 +733,16 @@ class UIGraph(QObject):
|
|||
def removeAttribute(self, attribute):
|
||||
self.push(commands.ListAttributeRemoveCommand(self._graph, attribute))
|
||||
|
||||
@Slot()
|
||||
def clearImages(self):
|
||||
with self.groupedGraphModification("Clear Images"):
|
||||
self.push(commands.ClearImagesCommand(self._graph, [self.cameraInit]))
|
||||
|
||||
@Slot()
|
||||
def clearAllImages(self):
|
||||
with self.groupedGraphModification("Clear All Images"):
|
||||
self.push(commands.ClearImagesCommand(self._graph, list(self.cameraInits)))
|
||||
|
||||
@Slot(Node)
|
||||
def appendSelection(self, node):
|
||||
""" Append 'node' to the selection if it is not already part of the selection. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue