diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 370a49dc08..6175bb069a 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -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):