🐛 Break loop when no parent is present

This commit is contained in:
Elena Torro
2025-10-01 12:43:56 +02:00
parent f119a9548d
commit e10169b3db

View File

@@ -929,6 +929,7 @@ impl Shape {
// FIXME: This should panic! I've removed it temporarily until // FIXME: This should panic! I've removed it temporarily until
// we fix the problems with shapes without parents. // we fix the problems with shapes without parents.
// panic!("Parent can't be found"); // panic!("Parent can't be found");
break;
} }
} }
@@ -957,6 +958,7 @@ impl Shape {
// FIXME: This should panic! I've removed it temporarily until // FIXME: This should panic! I've removed it temporarily until
// we fix the problems with shapes without parents. // we fix the problems with shapes without parents.
// panic!("Parent can't be found"); // panic!("Parent can't be found");
break;
} }
} }
matrix matrix