PartDesign: [skip ci] fix L2 parameter in pad feature when using custom direction

This commit is contained in:
wmayer
2020-09-12 17:26:41 +02:00
parent 91ef59fdbe
commit 308baeaeab

View File

@@ -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());