diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow/mod.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow/mod.rs index 2389d7732..c1960f6de 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow/mod.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/workflow/mod.rs @@ -219,10 +219,6 @@ pub(crate) async fn separate_ui_impl( { let node_id = to_node.as_str(); let cut_path = sidecar.join(format!("cut-{}.png", Uuid::new_v4())); - if !cut_path.starts_with(&sidecar) { - cut_error = Some(format!("节点 {} 的路径越界", node_id)); - break; - } match cut::cut_processed_image( processed_path.clone(), *extracted_area,