Fixed scale problem under Maya control mode

This commit is contained in:
Gyedo Jeon 2007-08-08 22:36:54 +00:00
parent 62e24ff632
commit f914eb9c8f
2 changed files with 6 additions and 1 deletions

View File

@ -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):

View File

@ -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':