From 207e6b576dea2092e1499158b4c58244cdf62a1d Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Fri, 18 Jul 2025 18:16:27 +0200 Subject: [PATCH] Assembly: Fix error message flexible assembly #22561 --- src/Mod/Assembly/JointObject.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Assembly/JointObject.py b/src/Mod/Assembly/JointObject.py index 0496338e22..e654f73142 100644 --- a/src/Mod/Assembly/JointObject.py +++ b/src/Mod/Assembly/JointObject.py @@ -624,6 +624,8 @@ class Joint: if ( hasattr(joint, "Reference1") and joint.Reference1 is not None + and len(joint.Reference1) == 2 + and len(joint.Reference1[1]) != 0 and (joint.Reference1[1][0].find("?") != -1) ): raise Exception(errStr + "Reference1") @@ -631,6 +633,8 @@ class Joint: if ( hasattr(joint, "Reference2") and joint.Reference2 is not None + and len(joint.Reference2) == 2 + and len(joint.Reference2[1]) != 0 and (joint.Reference2[1][0].find("?") != -1) ): raise Exception(errStr + "Reference2")