ソースを参照

only allow __dev__ in __debug__

Darren Ranalli 22 年 前
コミット
9b0379e016
1 ファイル変更4 行追加0 行削除
  1. 4 0
      direct/src/showbase/ShowBaseGlobal.py

+ 4 - 0
direct/src/showbase/ShowBaseGlobal.py

@@ -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.")