Assembly: Gears: Fix crash if user selected first elements before triggering tool.

This commit is contained in:
PaddleStroke
2024-06-27 10:27:32 +02:00
committed by Chris Hennes
parent 4d6b738062
commit e7699b531e

View File

@@ -1301,10 +1301,15 @@ class TaskAssemblyCreateJoint(QtCore.QObject):
self.createJointObject()
self.visibilityBackup = False
self.handleInitialSelection()
self.adaptUi()
if self.creating:
# This has to be after adaptUi so that properties default values are adapted
# if needed. For instance for gears adaptUi will prevent radii from being 0
# before handleInitialSelection tries to solve.
self.handleInitialSelection()
self.setJointsPickableState(False)
Gui.Selection.addSelectionGate(