From 0bfd6d7e8eee41c93a1a6d295e4529f47b07f604 Mon Sep 17 00:00:00 2001 From: kreso-t Date: Sat, 1 Sep 2018 17:56:30 +0200 Subject: [PATCH] Path: Adaptive - fix for stock to leave for outside region --- src/Mod/Path/libarea/Adaptive.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/libarea/Adaptive.cpp b/src/Mod/Path/libarea/Adaptive.cpp index d4b874b502..e92f4a17cc 100644 --- a/src/Mod/Path/libarea/Adaptive.cpp +++ b/src/Mod/Path/libarea/Adaptive.cpp @@ -874,7 +874,10 @@ namespace AdaptivePath { if(stockToLeave>NTOL) { clipof.Clear(); clipof.AddPaths(inputPaths,JoinType::jtRound,EndType::etClosedPolygon); - clipof.Execute(inputPaths,-stockToLeave*scaleFactor); + if(opType==OperationType::otClearingOutside || opType==OperationType::otProfilingOutside) + clipof.Execute(inputPaths,stockToLeave*scaleFactor); + else + clipof.Execute(inputPaths,-stockToLeave*scaleFactor); } else { // fix for clipper glitches clipof.Clear();