mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
Made shift-click of selected object to deselect it
This commit is contained in:
parent
53d39caa55
commit
08a51055d2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user