mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
added has()
This commit is contained in:
parent
60af68519f
commit
9bde0aae7e
@ -76,6 +76,9 @@ class OnScreenDebug:
|
||||
self.data[key] = (self.frame, value)
|
||||
return 1 # to allow assert(onScreenDebug.add("foo", bar))
|
||||
|
||||
def has(self, key):
|
||||
return key in self.data
|
||||
|
||||
def remove(self, key):
|
||||
del self.data[key]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user