diff --git a/src/Mod/Assembly/JointObject.py b/src/Mod/Assembly/JointObject.py index b49db1eb80..c0a7fe7219 100644 --- a/src/Mod/Assembly/JointObject.py +++ b/src/Mod/Assembly/JointObject.py @@ -358,7 +358,7 @@ class Joint: joint.Placement2 = App.Placement() if isAssembly: assembly.undoSolve() - self.undoPreSolve() + self.undoPreSolve(joint) def updateJCSPlacements(self, joint): if not joint.Detach1: @@ -615,11 +615,13 @@ class Joint: return True return False - def undoPreSolve(self): + def undoPreSolve(self, joint): if self.partMovedByPresolved: self.partMovedByPresolved.Placement = self.presolveBackupPlc self.partMovedByPresolved = None + joint.Placement1 = joint.Placement1 # Make sure plc1 is redrawn + def areJcsSameDir(self, joint): globalJcsPlc1 = UtilsAssembly.getJcsGlobalPlc(joint.Placement1, joint.Object1, joint.Part1) globalJcsPlc2 = UtilsAssembly.getJcsGlobalPlc(joint.Placement2, joint.Object2, joint.Part2)