From e5b2d8c874c295b262324b513235b0958060936c Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Wed, 23 Oct 2024 21:13:37 +0200 Subject: [PATCH] PD: Fix TwoLengths and Midplane both enabled This scenario makes no sense, so it is removed from the code. --- src/Mod/PartDesign/App/FeatureExtrude.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Mod/PartDesign/App/FeatureExtrude.cpp b/src/Mod/PartDesign/App/FeatureExtrude.cpp index 4cbd066df0..9b3f9c6acf 100644 --- a/src/Mod/PartDesign/App/FeatureExtrude.cpp +++ b/src/Mod/PartDesign/App/FeatureExtrude.cpp @@ -305,16 +305,11 @@ void FeatureExtrude::generatePrism(TopoShape& prism, Ltotal = getThroughAllLength(); } - if (method == "TwoLengths") { - // midplane makes no sense here Ltotal += L2; if (reversed) { Loffset = -L; } - else if (midplane) { - Loffset = -0.5 * (L2 + L); - } else { Loffset = -L2; }