mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -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
|
break
|
||||||
|
|
||||||
# Get this pointer
|
# Get this pointer
|
||||||
id = nodePath.id()
|
id = nodePath.get_key()
|
||||||
# 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, deselect it
|
# If so, deselect it
|
||||||
@ -104,7 +104,7 @@ class SelectedNodePaths(DirectObject):
|
|||||||
# Show its bounding box
|
# Show its bounding box
|
||||||
dnp.highlight(fRecompute = 0)
|
dnp.highlight(fRecompute = 0)
|
||||||
# Add it to the selected dictionary
|
# Add it to the selected dictionary
|
||||||
self.selectedDict[dnp.id()] = dnp
|
self.selectedDict[dnp.get_key()] = dnp
|
||||||
self.selectedList.append(dnp) # [gjeon]
|
self.selectedList.append(dnp) # [gjeon]
|
||||||
|
|
||||||
# And update last
|
# And update last
|
||||||
@ -117,7 +117,7 @@ class SelectedNodePaths(DirectObject):
|
|||||||
def deselect(self, nodePath):
|
def deselect(self, nodePath):
|
||||||
""" Deselect the specified node path """
|
""" Deselect the specified node path """
|
||||||
# Get this pointer
|
# Get this pointer
|
||||||
id = nodePath.id()
|
id = nodePath.get_key()
|
||||||
# See if it is in the selected dictionary
|
# See if it is in the selected dictionary
|
||||||
dnp = self.getSelectedDict(id)
|
dnp = self.getSelectedDict(id)
|
||||||
if dnp:
|
if dnp:
|
||||||
@ -240,7 +240,7 @@ class SelectedNodePaths(DirectObject):
|
|||||||
|
|
||||||
def getDirectNodePath(self, nodePath):
|
def getDirectNodePath(self, nodePath):
|
||||||
# Get this pointer
|
# Get this pointer
|
||||||
id = nodePath.id()
|
id = nodePath.get_key()
|
||||||
# First check selected dict
|
# First check selected dict
|
||||||
dnp = self.getSelectedDict(id)
|
dnp = self.getSelectedDict(id)
|
||||||
if dnp:
|
if dnp:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user