To maintain compatibility with Pirates

This commit is contained in:
Abhishek Nath 2008-11-04 01:12:52 +00:00
parent db1bc689e5
commit d2602b7a26
1 changed files with 4 additions and 0 deletions

View File

@ -63,7 +63,11 @@ class DirectManipulationControl(DirectObject):
# Constraint determined by nodes name
self.constraint = entry.getIntoNodePath().getName()
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 and not base.direct.gotControl(modifiers):
return
if not base.direct.gotAlt(modifiers):
# Check to see if we are moving the object