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

Co-authored-by: Benjamin Bræstrup Sayoc <[email protected]>
This commit is contained in:
sliptonic
2023-06-19 09:09:38 -05:00
co-authored by Benjamin Bræstrup Sayoc
parent 8e580e53ef
commit 0f3ea60ba8
@@ -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":