mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[ui] Import images asynchronously with the "Import Images" menu action
Loading images with the "Import Images" menu action is a blocking operation that might freeze the app if there are many images to import. This commit performs the import asynchronously (similarly to what is done when images are dropped in the Image Gallery): Meshroom remains unusable while the images are imported and the intrinsics built (which is a wanted behaviour), but it does not freeze at all.
This commit is contained in:
parent
6c5fea5f36
commit
b5fab79e09
1 changed files with 1 additions and 1 deletions
|
@ -801,7 +801,7 @@ class Reconstruction(UIGraph):
|
|||
logging.debug("importImagesFromFolder: " + str(path))
|
||||
filesByType = multiview.findFilesByTypeInFolder(path, recursive)
|
||||
if filesByType.images:
|
||||
self.buildIntrinsics(self.cameraInit, filesByType.images)
|
||||
self.importImagesAsync(filesByType.images, self.cameraInit)
|
||||
|
||||
@Slot("QVariant")
|
||||
def importImagesUrls(self, imagePaths, recursive=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue