diff --git a/direct/src/directtools/DirectManipulation.py b/direct/src/directtools/DirectManipulation.py index d4589c7db7..d3a318d6ec 100644 --- a/direct/src/directtools/DirectManipulation.py +++ b/direct/src/directtools/DirectManipulation.py @@ -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