fixes 0003524: The PartDesign hole feature should respect the Reverse property and provide a checkbox in the panel

This commit is contained in:
wmayer
2019-02-22 21:10:05 +01:00
parent 2631df09c0
commit 564d41d835

View File

@@ -977,6 +977,8 @@ App::DocumentObjectExecReturn *Hole::execute(void)
// Get vector normal to profile
Base::Vector3d SketchVector = getProfileNormal();
if (Reversed.getValue())
SketchVector *= -1.0;
// Define this as zDir
gp_Vec zDir(SketchVector.x, SketchVector.y, SketchVector.z);