From be22aefe1e6f805a3ff89d1ac749822ab73bfa13 Mon Sep 17 00:00:00 2001 From: jim Date: Thu, 27 Apr 2023 09:53:37 -0700 Subject: [PATCH] Avoid unnecessary mid-Op tool movements to origin: don't add the end vector of 0-length segments to the Op move list. --- src/Mod/Path/Path/Op/Area.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/Path/Op/Area.py b/src/Mod/Path/Path/Op/Area.py index 6dd9ad462f..dd26a27fcf 100644 --- a/src/Mod/Path/Path/Op/Area.py +++ b/src/Mod/Path/Path/Op/Area.py @@ -265,7 +265,10 @@ class ObjectOp(PathOp.ObjectOp): (pp, end_vector) = Path.fromShapes(**pathParams) Path.Log.debug("pp: {}, end vector: {}".format(pp, end_vector)) - self.endVector = end_vector + + # Keep track of this segment's end only if it has movement (otherwise end_vector is 0,0,0 and the next segment will unnecessarily start there) + if pp.Size > 0: + self.endVector = end_vector simobj = None if getsim: