mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 18:31:58 +02:00
[ui] app: Check that viewpoints
exist before accessing them
This commit is contained in:
parent
74271019b3
commit
f84d0d6341
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ class MeshroomApp(QApplication):
|
|||
# find the first camerainit node
|
||||
file = file["graph"]
|
||||
for node in file:
|
||||
if file[node]["nodeType"] == "CameraInit":
|
||||
if file[node]["nodeType"] == "CameraInit" and file[node]["inputs"].get("viewpoints"):
|
||||
if len(file[node]["inputs"]["viewpoints"]) > 0:
|
||||
thumbnail = ThumbnailCache.createThumbnail(ThumbnailCache, file[node]["inputs"]["viewpoints"][0]["path"], -1, True)
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue