mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -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()
|
id = nodePath.id()
|
||||||
# First see if its already in the selected dictionary
|
# First see if its already in the selected dictionary
|
||||||
dnp = self.getSelectedDict(id)
|
dnp = self.getSelectedDict(id)
|
||||||
# If so, we're done
|
# If so, deselect it
|
||||||
if not dnp:
|
if dnp:
|
||||||
|
self.deselect(nodePath)
|
||||||
|
return None
|
||||||
|
else:
|
||||||
# See if it is in the deselected dictionary
|
# See if it is in the deselected dictionary
|
||||||
dnp = self.getDeselectedDict(id)
|
dnp = self.getDeselectedDict(id)
|
||||||
if dnp:
|
if dnp:
|
||||||
@ -103,6 +106,7 @@ class SelectedNodePaths(DirectObject):
|
|||||||
# Add it to the selected dictionary
|
# Add it to the selected dictionary
|
||||||
self.selectedDict[dnp.id()] = dnp
|
self.selectedDict[dnp.id()] = dnp
|
||||||
self.selectedList.append(dnp) # [gjeon]
|
self.selectedList.append(dnp) # [gjeon]
|
||||||
|
|
||||||
# And update last
|
# And update last
|
||||||
__builtins__["last"] = self.last = dnp
|
__builtins__["last"] = self.last = dnp
|
||||||
# Update cluster servers if this is a cluster client
|
# Update cluster servers if this is a cluster client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user