소스 검색

To maintain compatibility with Pirates

Abhishek Nath 17 년 전
부모
커밋
d2602b7a26
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      direct/src/directtools/DirectManipulation.py

+ 4 - 0
direct/src/directtools/DirectManipulation.py

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