Skip to content

Commit

Permalink
Sketcher: fix external geometry parallel projection offset
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Jan 31, 2023
1 parent e98d1b3 commit 5fc4cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Sketcher/App/SketchObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7968,9 +7968,9 @@ void SketchObject::rebuildExternalGeometry(bool defining, bool addIntersection)
if (Part::TopoShape(edge).findPlane(pln)
&& pln.Axis().Direction().IsParallel(
sketchPlane.Axis().Direction(), Precision::Confusion())) {
double d = -pln.Distance(sketchPlane);
double d = pln.Distance(sketchPlane);
gp_Trsf trsf;
trsf.SetTranslation(gp_Vec(pln.Axis().Direction()) * d);
trsf.SetTranslation(gp_Vec(sketchPlane.Axis().Direction()) * d);
projShape.setShape(edge);
projShape.transformShape(Part::TopoShape::convert(trsf), /*copy*/false);
} else {
Expand Down

0 comments on commit 5fc4cc4

Please sign in to comment.