Browse Source

Eliminated selection on just mouse up, requires matching mouse down event, for bad interaction with direct gui

Mark Mine 20 years ago
parent
commit
d8330fc4f1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/directtools/DirectManipulation.py

+ 2 - 1
direct/src/directtools/DirectManipulation.py

@@ -102,8 +102,9 @@ class DirectManipulationControl(PandaObject):
                 direct.select(entry.getIntoNodePath(), direct.fShift)
                 direct.select(entry.getIntoNodePath(), direct.fShift)
             else:
             else:
                 direct.deselectAll()
                 direct.deselectAll()
-        else:
+        elif self.mode == 'move':
             self.manipulateObjectCleanup()
             self.manipulateObjectCleanup()
+        self.mode = None
 
 
     def manipulateObjectCleanup(self):
     def manipulateObjectCleanup(self):
         if self.fScaling:
         if self.fScaling: