Skip to content

Commit 731d941

Browse files
authored
Fix logged obb being displayed with half of the requested size (#1749)
1 parent 1e84aa5 commit 731d941

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/re_viewer/src/ui/view_spatial/scene/scene_part

crates/re_viewer/src/ui/view_spatial/scene/scene_part/boxes3d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Boxes3DPart {
6464
let color =
6565
annotation_info.color(color.map(move |c| c.to_array()).as_ref(), default_color);
6666

67-
let scale = glam::Vec3::from(half_size);
67+
let scale = glam::Vec3::from(half_size) * 2.0;
6868
let rot = rotation.map(glam::Quat::from).unwrap_or_default();
6969
let tran = position.map_or(glam::Vec3::ZERO, glam::Vec3::from);
7070
let transform = glam::Affine3A::from_scale_rotation_translation(scale, rot, tran);

0 commit comments

Comments
 (0)