Skip to content

Commit

Permalink
PartDesign: [skip ci] fix L2 parameter in pad feature when using cust…
Browse files Browse the repository at this point in the history
…om direction
  • Loading branch information
wwmayer committed Sep 12, 2020
1 parent 7cbc9cf commit 4cad62e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/PartDesign/App/FeaturePad.cpp
Expand Up @@ -163,9 +163,10 @@ App::DocumentObjectExecReturn *Pad::execute(void)
// factor would be zero if vectors are orthogonal
if (factor < Precision::Confusion())
return new App::DocumentObjectExecReturn("Pad: Creation failed because direction is orthogonal to sketch's normal vector");

// perform the length correction
L = L / factor;
L2 = L2 / factor;

dir.Transform(invObjLoc.Transformation());

Expand Down

0 comments on commit 4cad62e

Please sign in to comment.