From e10169b3db6e5f76d4cc17af698a0c87426cb3ce Mon Sep 17 00:00:00 2001 From: Elena Torro Date: Wed, 1 Oct 2025 12:43:56 +0200 Subject: [PATCH] :bug: Break loop when no parent is present --- render-wasm/src/shapes.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/render-wasm/src/shapes.rs b/render-wasm/src/shapes.rs index 9bfc427073..b018435ef5 100644 --- a/render-wasm/src/shapes.rs +++ b/render-wasm/src/shapes.rs @@ -929,6 +929,7 @@ impl Shape { // FIXME: This should panic! I've removed it temporarily until // we fix the problems with shapes without parents. // panic!("Parent can't be found"); + break; } } @@ -957,6 +958,7 @@ impl Shape { // FIXME: This should panic! I've removed it temporarily until // we fix the problems with shapes without parents. // panic!("Parent can't be found"); + break; } } matrix