@@ -225,7 +225,7 @@ impl ImagesPart {
225225 }
226226 } ;
227227
228- if * ent_props. backproject_depth . get ( ) && tensor. meaning == TensorDataMeaning :: Depth {
228+ if * ent_props. backproject_depth && tensor. meaning == TensorDataMeaning :: Depth {
229229 if let Some ( parent_pinhole_path) = transforms. parent_pinhole ( ent_path) {
230230 // NOTE: we don't pass in `world_from_obj` because this corresponds to the
231231 // transform of the projection plane, which is of no use to us here.
@@ -342,11 +342,11 @@ impl ImagesPart {
342342 & tensor_stats,
343343 ) ?;
344344
345- let depth_from_world_scale = * properties. depth_from_world_scale . get ( ) ;
345+ let depth_from_world_scale = * properties. depth_from_world_scale ;
346346
347347 let world_depth_from_texture_depth = 1.0 / depth_from_world_scale;
348348
349- let colormap = match * properties. color_mapper . get ( ) {
349+ let colormap = match * properties. color_mapper {
350350 re_data_store:: ColorMapper :: Colormap ( colormap) => match colormap {
351351 re_data_store:: Colormap :: Grayscale => Colormap :: Grayscale ,
352352 re_data_store:: Colormap :: Turbo => Colormap :: Turbo ,
@@ -362,7 +362,7 @@ impl ImagesPart {
362362 // at that distance.
363363 let fov_y = intrinsics. fov_y ( ) . unwrap_or ( 1.0 ) ;
364364 let pixel_width_from_depth = ( 0.5 * fov_y) . tan ( ) / ( 0.5 * height as f32 ) ;
365- let radius_scale = * properties. backproject_radius_scale . get ( ) ;
365+ let radius_scale = * properties. backproject_radius_scale ;
366366 let point_radius_from_world_depth = radius_scale * pixel_width_from_depth;
367367
368368 Ok ( DepthCloud {
0 commit comments