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)
|
.maintain_aspect_ratio(true)
|
||||||
.texture_options(TextureOptions::NEAREST);
|
.texture_options(TextureOptions::NEAREST);
|
||||||
ui.add(image);
|
ui.add(image);
|
||||||
|
|
@ -182,7 +182,7 @@ impl ObjectWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn show_object(&mut self, ui: &mut Ui) {
|
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)
|
.fit_to_original_size(self.scale)
|
||||||
.texture_options(TextureOptions::NEAREST);
|
.texture_options(TextureOptions::NEAREST);
|
||||||
ui.add(image);
|
ui.add(image);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue