Skip to content

Commit

Permalink
[planegcs] Fix error gradient check in ConstraintTangentCircumf
Browse files Browse the repository at this point in the history
  • Loading branch information
AjinkyaDahale authored and chennes committed Aug 31, 2024
1 parent ab741cd commit d43dbf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Sketcher/App/planegcs/Constraints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1624,10 +1624,10 @@ double ConstraintTangentCircumf::grad(double* param)
}
else {
if (param == r1()) {
deriv += 2 * (*r1() + *r2());
deriv += -2 * (*r1() + *r2());
}
if (param == r2()) {
deriv += 2 * (*r1() + *r2());
deriv += -2 * (*r1() + *r2());
}
}
}
Expand Down

0 comments on commit d43dbf2

Please sign in to comment.