From f3efc9d84e43d08f5888fecb9cc5b53d8e2d32bb Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Tue, 8 Oct 2024 18:13:58 +0200 Subject: [PATCH] roll back unneeded changes --- crates/viewer/re_data_ui/src/image.rs | 2 +- crates/viewer/re_space_view_spatial/src/picking_ui_pixel.rs | 2 +- crates/viewer/re_space_view_tensor/src/space_view_class.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/viewer/re_data_ui/src/image.rs b/crates/viewer/re_data_ui/src/image.rs index f418a0e7bb8c..caacd42acd80 100644 --- a/crates/viewer/re_data_ui/src/image.rs +++ b/crates/viewer/re_data_ui/src/image.rs @@ -120,7 +120,7 @@ fn show_image_preview( desired_size: egui::Vec2, ) -> Result { fn texture_size(colormapped_texture: &ColormappedTexture) -> Vec2 { - let [w, h] = colormapped_texture.texture.width_height(); + let [w, h] = colormapped_texture.width_height(); egui::vec2(w as f32, h as f32) } diff --git a/crates/viewer/re_space_view_spatial/src/picking_ui_pixel.rs b/crates/viewer/re_space_view_spatial/src/picking_ui_pixel.rs index 09c0bca4b110..4dbcf14fc4d6 100644 --- a/crates/viewer/re_space_view_spatial/src/picking_ui_pixel.rs +++ b/crates/viewer/re_space_view_spatial/src/picking_ui_pixel.rs @@ -195,7 +195,7 @@ fn try_show_zoomed_image_region( interaction_id: &TextureInteractionId<'_>, center_texel: [isize; 2], ) -> anyhow::Result<()> { - let [width, height] = colormapped_texture.texture.width_height(); + let [width, height] = colormapped_texture.width_height(); const POINTS_PER_TEXEL: f32 = 5.0; let size = egui::Vec2::splat(((ZOOMED_IMAGE_TEXEL_RADIUS * 2 + 1) as f32) * POINTS_PER_TEXEL); diff --git a/crates/viewer/re_space_view_tensor/src/space_view_class.rs b/crates/viewer/re_space_view_tensor/src/space_view_class.rs index d5f44b7a7741..1b3c770a135e 100644 --- a/crates/viewer/re_space_view_tensor/src/space_view_class.rs +++ b/crates/viewer/re_space_view_tensor/src/space_view_class.rs @@ -353,7 +353,7 @@ impl TensorSpaceView { &colormap, gamma, )?; - let [width, height] = colormapped_texture.texture.width_height(); + let [width, height] = colormapped_texture.width_height(); let view_fit: ViewFit = ViewProperty::from_archetype::( ctx.blueprint_db(),