浏览代码

adding 'no-loading-screen' config variable

Josh Wilson 18 年之前
父节点
当前提交
a64d687c52
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      direct/src/showbase/Transitions.py

+ 3 - 0
direct/src/showbase/Transitions.py

@@ -148,6 +148,9 @@ class Transitions:
         fadeIn or call noFade.
         lerp
         """
+        if base.config.GetBool('no-loading-screen',0):
+            return
+
         if (t == 0):
             # Fade out immediately with no lerp
             self.noTransitions()