mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[ui] Viewer2D: prioritize metadata from float viewer instead of sfmData
This commit is contained in:
parent
47fcc2f9a4
commit
c976504280
1 changed files with 7 additions and 4 deletions
|
@ -31,6 +31,13 @@ FocusScope {
|
|||
QtObject {
|
||||
id: m
|
||||
property variant imgMetadata: {
|
||||
// Use metadata from FloatImage viewer in priority
|
||||
// since it directly reads them from the image file
|
||||
if(floatImageViewerLoader.active)
|
||||
{
|
||||
return floatImageViewerLoader.item.metadata
|
||||
}
|
||||
|
||||
// I did not find a direct way to check if the map is empty or not...
|
||||
var sfmHasImgMetadata = 0;
|
||||
for(var key in root.metadata) { sfmHasImgMetadata = 1; break; }
|
||||
|
@ -40,10 +47,6 @@ FocusScope {
|
|||
return root.metadata
|
||||
}
|
||||
|
||||
if(floatImageViewerLoader.active)
|
||||
{
|
||||
return floatImageViewerLoader.item.metadata
|
||||
}
|
||||
return {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue