From 5862fe7824b70b39df8eee71df821bdf06815288 Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Thu, 8 Oct 2026 14:49:43 +0300 Subject: [PATCH] fix(extrude): history records give the profile frame (group 295) The reference cannot open a drawing whose extrusion history has a taper and leaves the profile frame to be computed (ErrorStatus 53). Extrusion and press-pull records now set group 295, as the reference writes them. Co-Authored-By: Claude Opus 5.5 --- src/app/presspull_ops.rs | 2 ++ src/scene/model/sweep_model.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/app/presspull_ops.rs b/src/app/presspull_ops.rs index 18eacfe20..866cbde85 100644 --- a/src/app/presspull_ops.rs +++ b/src/app/presspull_ops.rs @@ -33,6 +33,8 @@ fn extrusion_history(entity: &EntityType, direction: DVec3, anchor: DVec3) -> Op sweep_entity_transform: glam::DMat4::IDENTITY.to_cols_array(), path_entity_transform: glam::DMat4::IDENTITY.to_cols_array(), reference_point: Vector3::new(anchor.x, anchor.y, anchor.z), + // Group 295: the profile frame is given (see extrusion_history). + flags_294_296: [false, true, false], ..SolidHistorySweep::default() })); } diff --git a/src/scene/model/sweep_model.rs b/src/scene/model/sweep_model.rs index 3a3e3f15e..3c12024f7 100644 --- a/src/scene/model/sweep_model.rs +++ b/src/scene/model/sweep_model.rs @@ -719,6 +719,10 @@ pub fn extrusion_history( reference_point[1], reference_point[2], ), + // Group 295: the profile frame is given, as the reference records + // it. Left to be computed, the reference cannot open a drawing with + // a tapered extrusion (ErrorStatus 53). + flags_294_296: [false, true, false], ..SolidHistorySweep::default() })) }