mover: use SHIFT key to bypass recompute on moving

This commit is contained in:
Zheng, Lei 2020-06-29 17:36:54 +08:00
parent 3bd99b64d2
commit 9e34ecd1c0

View File

@ -235,6 +235,9 @@ class AsmMovingPart(object):
setPlacement(info.Part,pla)
rollback.append((info.PartName,info.Part,info.Placement.copy()))
if QtGui.QApplication.keyboardModifiers()==QtCore.Qt.ShiftModifier:
return
if not gui.AsmCmdManager.AutoRecompute or \
QtGui.QApplication.keyboardModifiers()==QtCore.Qt.ControlModifier:
# AsmCmdManager.AutoRecompute means auto re-solve the system. The