Fix the object viewer
This commit is contained in:
parent
341de60816
commit
0d2d6bf863
|
|
@ -78,7 +78,7 @@ impl ObjectWindow {
|
|||
});
|
||||
});
|
||||
});
|
||||
let image = Image::new("vip://zoom")
|
||||
let image = Image::new(self.image_url("object-zoom"))
|
||||
.maintain_aspect_ratio(true)
|
||||
.texture_options(TextureOptions::NEAREST);
|
||||
ui.add(image);
|
||||
|
|
@ -182,7 +182,7 @@ impl ObjectWindow {
|
|||
}
|
||||
|
||||
fn show_object(&mut self, ui: &mut Ui) {
|
||||
let image = Image::new("vip://full")
|
||||
let image = Image::new(self.image_url("object-full"))
|
||||
.fit_to_original_size(self.scale)
|
||||
.texture_options(TextureOptions::NEAREST);
|
||||
ui.add(image);
|
||||
|
|
|
|||
Loading…
Reference in New Issue