From e47bc0df7261e22b72e796cc4d9b1c6e1f4defd9 Mon Sep 17 00:00:00 2001 From: Gyedo Jeon Date: Tue, 8 Dec 2009 01:55:26 +0000 Subject: [PATCH] Fixed a toontown problem caused by new LE development --- direct/src/directtools/DirectSelection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/direct/src/directtools/DirectSelection.py b/direct/src/directtools/DirectSelection.py index 1bd68550a1..12c72ca08e 100644 --- a/direct/src/directtools/DirectSelection.py +++ b/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