fix: 修复异常 Shape 未校验问题

This commit is contained in:
2026-06-09 21:07:08 +08:00
parent 81a712b0f5
commit 48d7586587
+3
View File
@@ -47,6 +47,9 @@ impl ShapeForge {
}
fn compute_depth(shape_id: ShapeId, shapes: &[Option<Arc<Shape>>]) -> u32 {
if shape_id == 0 {
return 0;
}
let mut count = 0u32;
let mut cursor = Some(shape_id);
while let Some(id) = cursor {