浏览代码

Always disabled camera control

Mark Mine 22 年之前
父节点
当前提交
a6cd86e1c6
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      direct/src/directtools/DirectSession.py

+ 2 - 3
direct/src/directtools/DirectSession.py

@@ -218,9 +218,8 @@ class DirectSession(PandaObject):
     def disable(self):
     def disable(self):
         # Shut down all display region context tasks
         # Shut down all display region context tasks
         self.drList.removeContextTask()
         self.drList.removeContextTask()
-        if not self.fEnabledLight:
-            # Turn off camera fly
-            self.cameraControl.disableMouseFly()
+        # Turn off camera fly
+        self.cameraControl.disableMouseFly()
         # Turn off object manipulation
         # Turn off object manipulation
         self.deselectAll()
         self.deselectAll()
         self.manipulationControl.disableManipulation()
         self.manipulationControl.disableManipulation()