From f52884a80a0eb4180ed9cf6409d204745ee99469 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Mon, 16 Dec 2024 18:28:34 +0100 Subject: [PATCH] Don't make single plane collapse be an invalid transform Co-authored-by: Jeremy Leibs --- crates/viewer/re_view_spatial/src/contexts/transform_context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/viewer/re_view_spatial/src/contexts/transform_context.rs b/crates/viewer/re_view_spatial/src/contexts/transform_context.rs index 8a2264f81295..b533536755a7 100644 --- a/crates/viewer/re_view_spatial/src/contexts/transform_context.rs +++ b/crates/viewer/re_view_spatial/src/contexts/transform_context.rs @@ -568,7 +568,7 @@ fn query_and_resolve_tree_transform_at_entity( } } if let Some(scale) = result.component_instance::(0) { - if scale.x() == 0.0 || scale.y() == 0.0 || scale.z() == 0.0 { + if scale.x() == 0.0 && scale.y() == 0.0 && scale.z() == 0.0 { // Invalid scale. return None; }