Browse Source

Fixed a toontown problem caused by new LE development

Gyedo Jeon 16 years ago
parent
commit
e47bc0df72
1 changed files with 4 additions and 2 deletions
  1. 4 2
      direct/src/directtools/DirectSelection.py

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

@@ -560,11 +560,13 @@ class SelectionQueue(CollisionHandlerQueue):
                   (nodePath.getName() in self.unpickable)):
                 # Skip if in unpickable list
                 pass
-            elif ((skipFlags & SKIP_WIDGET) and
+            elif base.direct and\
+                 ((skipFlags & SKIP_WIDGET) and
                 (nodePath.getTag('WidgetName') != base.direct.widget.getName())):
                 # Skip if this widget part is not belong to current widget
                 pass
-            elif ((skipFlags & SKIP_WIDGET) and base.direct.fControl and
+            elif base.direct and\
+                 ((skipFlags & SKIP_WIDGET) and base.direct.fControl and
                 (nodePath.getName()[2:] == 'ring')):
                 # Skip when ununiformly scale in ortho view
                 pass