Prohibited unwanted object movent under Maya camera mode

This commit is contained in:
Gyedo Jeon 2007-08-07 18:43:16 +00:00
parent 44137206a2
commit b290f53d74
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ class DirectManipulationControl(DirectObject):
else:
# 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:
return
if not base.direct.gotAlt(modifiers):
# Check to see if we are moving the object