From 3c1e7bd5996d71062b1183db1833404d3a8d208a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 9 Sep 2026 00:41:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E7=95=99=E5=88=86=E7=A6=BB=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E8=8A=82=E7=82=B9=E7=9A=84=E7=9C=9F=E5=AE=9E=E9=87=8D?= =?UTF-8?q?=E5=81=9A=E6=AC=A1=E6=95=B0=20=E9=81=BF=E5=85=8D=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=AE=BE=E6=96=BD=E5=A4=B1=E8=B4=A5=E4=BC=AA=E9=80=A0?= =?UTF-8?q?=E8=BE=BE=E5=88=B0=E4=B8=8A=E9=99=90=20=E4=BF=9D=E6=8C=81=20pro?= =?UTF-8?q?blematic=20=E8=8A=82=E7=82=B9=E8=AF=8A=E6=96=AD=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=87=86=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src-tauri/src/ui_editor/commands/separation/workflow.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow.rs index 3ca8fc937..2d3cbb5ff 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow.rs @@ -87,7 +87,7 @@ fn mark_batch_problematic( state.problematic_nodes.push(ProblematicNode { node_id: node.id.clone(), problem_description: error.clone(), - rework_count: MAX_REWORK_COUNT, + rework_count: node.rework_count, }); } if let Some(tree) = state.unprocessed_trees.get_mut(tree_index) { @@ -313,7 +313,8 @@ pub(crate) async fn separate_ui_impl( } else { construct_separation_state(&state) }; - for (tree_index, tree) in separation.unprocessed_trees.clone().iter().enumerate() { + for tree_index in 0..separation.unprocessed_trees.len() { + let tree = &separation.unprocessed_trees[tree_index]; let image = state .ui_design_images .get(&tree.src_ui_design)