From 9c258294ab4cf52ff4a49771fda21db38764ef00 Mon Sep 17 00:00:00 2001 From: Open Toontown Date: Fri, 22 Nov 2019 18:43:24 -0500 Subject: [PATCH] general: set cull bins --- etc/Configrc.prc | 3 --- toontown/toonbase/ToonBase.py | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/Configrc.prc b/etc/Configrc.prc index 72e293e..02440ee 100644 --- a/etc/Configrc.prc +++ b/etc/Configrc.prc @@ -1,4 +1,3 @@ -cull-bin gui-popup 60 unsorted want-render2dp 1 text-encoding utf8 direct-wtext 0 @@ -12,8 +11,6 @@ collect-tcp 1 collect-tcp-interval 0.2 server-version sv1.0.47.38 server-version-suffix -cull-bin shadow 15 fixed -cull-bin ground 14 fixed model-path resources dc-file etc/toon.dc dc-file etc/otp.dc diff --git a/toontown/toonbase/ToonBase.py b/toontown/toonbase/ToonBase.py index 2279948..4d6074c 100644 --- a/toontown/toonbase/ToonBase.py +++ b/toontown/toonbase/ToonBase.py @@ -143,6 +143,9 @@ class ToonBase(OTPBase.OTPBase): tpMgr.setProperties('WLDisplay', WLDisplay) tpMgr.setProperties('WLEnter', WLEnter) del tpMgr + CullBinManager.getGlobalPtr().addBin('gui-popup', CullBinManager.BTUnsorted, 60) + CullBinManager.getGlobalPtr().addBin('shadow', CullBinManager.BTFixed, 15) + CullBinManager.getGlobalPtr().addBin('ground', CullBinManager.BTFixed, 14) self.lastScreenShotTime = globalClock.getRealTime() self.accept('InputState-forward', self.__walking) self.canScreenShot = 1