Fixed scale problem under Maya control mode
This commit is contained in:
parent
62e24ff632
commit
f914eb9c8f
|
|
@ -60,7 +60,7 @@ class DirectManipulationControl(DirectObject):
|
|||
# Nope, off the widget, no constraint
|
||||
self.constraint = None
|
||||
# [gjeon] to prohibit unwanted object movement while direct window doesn't have focus
|
||||
if base.direct.cameraControl.useMayaCamControls:
|
||||
if base.direct.cameraControl.useMayaCamControls and not base.direct.gotControl(modifiers):
|
||||
return
|
||||
|
||||
if not base.direct.gotAlt(modifiers):
|
||||
|
|
|
|||
|
|
@ -397,6 +397,11 @@ class DirectSession(DirectObject):
|
|||
self.fShift = 0
|
||||
elif input == 'control':
|
||||
self.fControl = 1
|
||||
# [gjeon] to update control key information while mouse1 is pressed
|
||||
if self.fMouse1:
|
||||
modifiers = DIRECT_NO_MOD
|
||||
modifiers |= DIRECT_CONTROL_MOD
|
||||
messenger.send('DIRECT-mouse1', sentArgs = [modifiers])
|
||||
elif input == 'control-up':
|
||||
self.fControl = 0
|
||||
elif input == 'alt':
|
||||
|
|
|
|||
Loading…
Reference in New Issue