From cc259564bbdaa539b612a0eb942a0450639a1115 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Sun, 2 Oct 2022 16:39:19 +0100 Subject: [PATCH] Bugfix * Avoid catching nodes during init phase and remove debug vars --- game/scripts/utility/editor.rpy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game/scripts/utility/editor.rpy b/game/scripts/utility/editor.rpy index e2f08069..b49b4333 100644 --- a/game/scripts/utility/editor.rpy +++ b/game/scripts/utility/editor.rpy @@ -16,10 +16,9 @@ init python: self.active = False def catch(self, *args, **kwargs): - if not self.active: + if not self.active or renpy.is_init_phase(): return - global n # DEBUG self.node = None self.live_code = None @@ -39,7 +38,6 @@ init python: return self.node = node - n = node # DEBUG who = node.who file = node.filename