mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
only allow __dev__ in __debug__
This commit is contained in:
parent
dbbc69e9a5
commit
9b0379e016
@ -14,3 +14,7 @@ def inspect(anObject):
|
||||
|
||||
__builtins__["inspect"] = inspect
|
||||
__builtins__["__dev__"] = base.config.GetBool('want-dev', 0)
|
||||
# this also appears in AIBaseGlobal
|
||||
if (not __debug__) and __dev__:
|
||||
notify = directNotify.newCategory('ShowBaseGlobal')
|
||||
notify.error("You must set 'want-dev' to false in non-debug mode.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user