Assembly: Gears: Fix crash if user selected first elements before triggering tool.
This commit is contained in:
committed by
Chris Hennes
parent
4d6b738062
commit
e7699b531e
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user