showbase: Fix exception when calling Ctrl+C at the wrong moment
This commit is contained in:
parent
8cd3812ecb
commit
d84b984e22
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue