Made shift-click of selected object to deselect it

This commit is contained in:
Gyedo Jeon 2009-04-01 22:44:45 +00:00
parent 53d39caa55
commit 08a51055d2

View File

@ -86,8 +86,11 @@ class SelectedNodePaths(DirectObject):
id = nodePath.id()
# First see if its already in the selected dictionary
dnp = self.getSelectedDict(id)
# If so, we're done
if not dnp:
# If so, deselect it
if dnp:
self.deselect(nodePath)
return None
else:
# See if it is in the deselected dictionary
dnp = self.getDeselectedDict(id)
if dnp:
@ -103,6 +106,7 @@ class SelectedNodePaths(DirectObject):
# Add it to the selected dictionary
self.selectedDict[dnp.id()] = dnp
self.selectedList.append(dnp) # [gjeon]
# And update last
__builtins__["last"] = self.last = dnp
# Update cluster servers if this is a cluster client