Browse Source

directtools: Fix typo in DirectSelection

Sam Edwards 7 years ago
parent
commit
aaeb925e84
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/directtools/DirectSelection.py

+ 2 - 2
direct/src/directtools/DirectSelection.py

@@ -623,8 +623,8 @@ class SelectionRay(SelectionQueue):
     def pickBitMask(self, bitMask = BitMask32.allOff(),
                     targetNodePath = None,
                     skipFlags = SKIP_ALL):
-        if parentNodePath is None:
-            parentNodePath = render
+        if targetNodePath is None:
+            targetNodePath = render
         self.collideWithBitMask(bitMask)
         self.pick(targetNodePath)
         # Determine collision entry