mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Fix use of deprecated NodePath.id()
This commit is contained in:
parent
6ddab65511
commit
4b1c4ff3c8
@ -83,7 +83,7 @@ class SelectedNodePaths(DirectObject):
|
||||
break
|
||||
|
||||
# Get this pointer
|
||||
id = nodePath.id()
|
||||
id = nodePath.get_key()
|
||||
# First see if its already in the selected dictionary
|
||||
dnp = self.getSelectedDict(id)
|
||||
# If so, deselect it
|
||||
@ -104,7 +104,7 @@ class SelectedNodePaths(DirectObject):
|
||||
# Show its bounding box
|
||||
dnp.highlight(fRecompute = 0)
|
||||
# Add it to the selected dictionary
|
||||
self.selectedDict[dnp.id()] = dnp
|
||||
self.selectedDict[dnp.get_key()] = dnp
|
||||
self.selectedList.append(dnp) # [gjeon]
|
||||
|
||||
# And update last
|
||||
@ -117,7 +117,7 @@ class SelectedNodePaths(DirectObject):
|
||||
def deselect(self, nodePath):
|
||||
""" Deselect the specified node path """
|
||||
# Get this pointer
|
||||
id = nodePath.id()
|
||||
id = nodePath.get_key()
|
||||
# See if it is in the selected dictionary
|
||||
dnp = self.getSelectedDict(id)
|
||||
if dnp:
|
||||
@ -240,7 +240,7 @@ class SelectedNodePaths(DirectObject):
|
||||
|
||||
def getDirectNodePath(self, nodePath):
|
||||
# Get this pointer
|
||||
id = nodePath.id()
|
||||
id = nodePath.get_key()
|
||||
# First check selected dict
|
||||
dnp = self.getSelectedDict(id)
|
||||
if dnp:
|
||||
|
Loading…
x
Reference in New Issue
Block a user