From cd1f010fe75ee672b0afe684c95736d850c01c93 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 1 Mar 2017 22:54:14 +0100 Subject: [PATCH] revert commit 1255ac62c and fix original code --- src/Mod/PartDesign/Gui/ViewProviderAddSub.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderAddSub.cpp b/src/Mod/PartDesign/Gui/ViewProviderAddSub.cpp index 2fa20d1de..d63550c05 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderAddSub.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderAddSub.cpp @@ -48,6 +48,7 @@ #include #include #include +#include using namespace PartDesignGui; @@ -130,8 +131,9 @@ void ViewProviderAddSub::updateAddSubShapeIndicator() { // create or use the mesh on the data structure #if OCC_VERSION_HEX >= 0x060600 + Standard_Real AngDeflectionRads = AngularDeflection.getValue() / 180.0 * M_PI; BRepMesh_IncrementalMesh(cShape,deflection,Standard_False, - deflection,Standard_True); + AngDeflectionRads,Standard_True); #else BRepMesh_IncrementalMesh(cShape,deflection); #endif