Fix the object viewer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user