Assembly: Fix inconsistent positioning in distance joint validation

When validating distance joints, parts would move from preview position to
a different valid solution. This was caused by preSolve() being called
inconsistently - applied during offset changes for all joint types, but
distance joints are not in JointUsingPreSolve list.

Fix: Only call preSolve() for joint types that are designed to use it,
matching the logic used elsewhere in the codebase.
This commit is contained in:
Mathieu GRENET
2025-08-28 00:38:03 +02:00
committed by Chris Hennes
parent d288a5ee30
commit 0604c818a1

View File

@@ -620,7 +620,7 @@ class Joint:
self.updateJCSPlacements(joint)
presolved = self.preSolve(joint, False)
presolved = joint.JointType in JointUsingPreSolve and self.preSolve(joint, False)
isAssembly = self.getAssembly(joint).Type == "Assembly"
if isAssembly and not presolved: