Refused part: the Repair Part comments say it is built

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jyviko
2026-10-28 21:22:29 -04:00
committed by Irakli Kourtis
parent 7c8132e2d6
commit f56e34d1ce
+2 -2
View File
@@ -9,7 +9,7 @@ use solidcraft_engine::doc::{FeatureKind, ModelState, PlaneRef};
use crate::SolveApp;
/// The command that repairs a part (planned).
/// The command that repairs a part (Repair Part).
pub(crate) const REPAIR: &str = "body.repair";
/// A part an operation uses that the kernel refuses.
@@ -102,7 +102,7 @@ pub(crate) fn next_frame(app: &mut SolveApp, ctx: &egui::Context) {
}
}
/// Repair the part (the command says when it cannot yet).
/// Repair the part with the command's defaults (it says why when nothing applies).
pub(crate) fn repair(app: &mut SolveApp, body: &str) {
if let Err(e) = app.run(REPAIR, json!({ "body": body })) {
app.set_status(e, true);