From 0f3ea60ba86ade561b7ff0e801ec359cba9dac07 Mon Sep 17 00:00:00 2001 From: sliptonic Date: Mon, 19 Jun 2023 08:53:06 -0500 Subject: [PATCH] Update src/Mod/Path/Path/Post/scripts/heidenhain_post.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Benjamin Bræstrup Sayoc --- src/Mod/Path/Path/Post/scripts/heidenhain_post.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/Path/Post/scripts/heidenhain_post.py b/src/Mod/Path/Path/Post/scripts/heidenhain_post.py index b43f4ba3a5..8ab52795e8 100644 --- a/src/Mod/Path/Path/Post/scripts/heidenhain_post.py +++ b/src/Mod/Path/Path/Post/scripts/heidenhain_post.py @@ -366,7 +366,8 @@ def export(objectslist, filename, argstring): commands = PathUtils.getPathWithPlacement(obj).Commands # If used compensated path, store, recompute and diff when asked - if hasattr(obj, "UseComp") and SOLVE_COMPENSATION_ACTIVE: + if not hasattr(obj, "UseComp") or not SOLVE_COMPENSATION_ACTIVE: + continue if not obj.UseComp: continue if hasattr(obj.Path, "Commands") and Object_Kind == "PROFILE":