forked from SilverStudioGames/WTS
Bugfix
* Avoid catching nodes during init phase and remove debug vars
This commit is contained in:
parent
b35c2cd26f
commit
cc259564bb
@ -16,10 +16,9 @@ init python:
|
|||||||
self.active = False
|
self.active = False
|
||||||
|
|
||||||
def catch(self, *args, **kwargs):
|
def catch(self, *args, **kwargs):
|
||||||
if not self.active:
|
if not self.active or renpy.is_init_phase():
|
||||||
return
|
return
|
||||||
|
|
||||||
global n # DEBUG
|
|
||||||
self.node = None
|
self.node = None
|
||||||
self.live_code = None
|
self.live_code = None
|
||||||
|
|
||||||
@ -39,7 +38,6 @@ init python:
|
|||||||
return
|
return
|
||||||
|
|
||||||
self.node = node
|
self.node = node
|
||||||
n = node # DEBUG
|
|
||||||
|
|
||||||
who = node.who
|
who = node.who
|
||||||
file = node.filename
|
file = node.filename
|
||||||
|
Loading…
Reference in New Issue
Block a user