From d84b984e22ddffacecb9052be143749c0fa366e8 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 26 Jan 2026 11:10:27 +0100 Subject: [PATCH] showbase: Fix exception when calling Ctrl+C at the wrong moment --- direct/src/showbase/ShowBase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index e5c2e79376..78ecaaf763 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -711,7 +711,8 @@ class ShowBase(DirectObject.DirectObject): allowAccessibilityShortcutKeys(True) self.__disabledStickyKeys = False - self.__directObject.ignoreAll() + if hasattr(self, '__directObject'): + self.__directObject.ignoreAll() self.ignoreAll() self.shutdown()