From 745945d2cbc8e5da112c5559802faf5871cbfaee Mon Sep 17 00:00:00 2001 From: Eric Trombly Date: Wed, 22 Apr 2020 11:39:12 -0500 Subject: [PATCH] fix detect of 0,0 start point --- src/Mod/Path/App/Area.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/App/Area.cpp b/src/Mod/Path/App/Area.cpp index a9d9df0c8f..bc1c26bc1e 100644 --- a/src/Mod/Path/App/Area.cpp +++ b/src/Mod/Path/App/Area.cpp @@ -3311,7 +3311,10 @@ void Area::toPath(Toolpath &path, const std::list &shapes, // rapid horizontal move if start Z is below retraction if(fabs((p.*getter)()-retraction) > Precision::Confusion()) { - if(_pstart && p.IsEqual(plast, Precision::Confusion())){ + // check if last is equal to current, if it is change last so the initial G0 is still emitted + gp_Pnt tmpPlast = plast; + (tmpPlast.*setter)((p.*getter)()); + if(_pstart && p.IsEqual(tmpPlast, Precision::Confusion())){ plast.SetCoord(10.0, 10.0, 10.0); (plast.*setter)(retraction); }