mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
added isDefaultValue
This commit is contained in:
parent
affc6a7348
commit
417ecf5bcb
@ -1992,6 +1992,9 @@ def safeRepr(obj):
|
||||
except:
|
||||
return '<** FAILED REPR OF %s **>' % obj.__class__.__name__
|
||||
|
||||
def isDefaultValue(x):
|
||||
return x == type(x)()
|
||||
|
||||
class ScratchPad:
|
||||
"""empty class to stick values onto"""
|
||||
def __init__(self, **kArgs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user