diff --git a/crates/viewer/re_space_view_spatial/src/contexts/transform_context.rs b/crates/viewer/re_space_view_spatial/src/contexts/transform_context.rs index 1a8e9c809171..e424797049b7 100644 --- a/crates/viewer/re_space_view_spatial/src/contexts/transform_context.rs +++ b/crates/viewer/re_space_view_spatial/src/contexts/transform_context.rs @@ -563,12 +563,9 @@ fn query_and_resolve_tree_transform_at_entity( } if result.component_instance::(0) == Some(TransformRelation::ChildFromParent) + // TODO(andreas): Should we warn? This might be intentionally caused by zero scale. + && transform.matrix3.determinant() != 0.0 { - if transform.matrix3.determinant() != 0.0 { - // TODO(andreas): Should we warn? This might be intentionally caused by zero scale. - transform = transform.inverse(); - } - transform = transform.inverse(); }