Skip to content

Commit

Permalink
[qt6][Viewer] Fix zoom in 8bits viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
servantftechnicolor authored and cbentejac committed Oct 16, 2024
1 parent 16832f8 commit d0b7b92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meshroom/ui/qml/Viewer/Viewer2D.qml
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,13 @@ FocusScope {
source: getImageFile()
onStatusChanged: {
// Update cache source when image is loaded
imageStatus = status
if (status === Image.Ready)
qtImageViewerCache.source = source
}

property var imageStatus: Image.Ready

// Image cache of the last loaded image
// Only visible when the main one is loading, to maintain a displayed image for smoother transitions
Image {
Expand Down

0 comments on commit d0b7b92

Please sign in to comment.