Update src/Mod/Path/Path/Post/scripts/heidenhain_post.py

Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com>
This commit is contained in:
sliptonic
2023-06-19 08:53:06 -05:00
parent 8e580e53ef
commit 0f3ea60ba8

View File

@@ -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":