Draft: 1st downgrade of lofts and sweep should be de-parametrization

This commit is contained in:
Roy-043
2025-07-10 21:16:39 +02:00
committed by Yorik van Havre
parent 2e4e661594
commit 93e09aa315

View File

@@ -390,7 +390,11 @@ def downgrade(objects, delete=False, force=None):
# special case, we have one parametric object: we "de-parametrize" it
elif len(objects) == 1 \
and hasattr(objects[0], "Shape") \
and (hasattr(objects[0], "Base") or hasattr(objects[0], "Profile")):
and (
hasattr(objects[0], "Base")
or hasattr(objects[0], "Profile")
or hasattr(objects[0], "Sections")
):
result = _shapify(objects[0])
if result:
_msg(translate("draft", "Found 1 parametric object: breaking its dependencies"))