@@ -59,14 +59,14 @@ var _lightmap_data
59
59
var _texture_in_update = false
60
60
61
61
# Logger instance
62
- onready var logger = Logger .ESCLoggerFile .new ()
62
+ onready var logger = Logger .ESCLoggerFile .new ()
63
63
64
64
# Set a reference to the active navigation polygon, register to Escoria
65
65
# and update the texture
66
66
func _ready ():
67
67
connect ("child_entered_tree" , self , "_check_multiple_enabled_navpolys" )
68
68
connect ("child_exiting_tree" , self , "_check_multiple_enabled_navpolys" , [true ])
69
-
69
+
70
70
_check_multiple_enabled_navpolys ()
71
71
if ! Engine .is_editor_hint ():
72
72
escoria .room_terrain = self
@@ -76,12 +76,12 @@ func _ready():
76
76
# Checks whether multiple navigation polygons are enabled.
77
77
# Shows a warning in the terminal if this happens.
78
78
# TODO: change this "simple" console log for an editor warning
79
- # by overriding Node._get_configuration_warning() after we get rid of
80
- # deprecated Navigation2D.
79
+ # by overriding Node._get_configuration_warning() after we get rid of
80
+ # deprecated Navigation2D.
81
81
#
82
82
# #### Parameters
83
83
#
84
- # - node: if this method is triggered by child_entered_tree or
84
+ # - node: if this method is triggered by child_entered_tree or
85
85
# child_exited_tree signals, parameter is the added node.
86
86
func _check_multiple_enabled_navpolys (node : Node = null , is_exiting : bool = false ) -> void :
87
87
var navigation_enabled_found = false
@@ -90,7 +90,7 @@ func _check_multiple_enabled_navpolys(node: Node = null, is_exiting: bool = fals
90
90
and node is NavigationPolygonInstance \
91
91
and node .enabled :
92
92
navigation_enabled_found = true
93
-
93
+
94
94
for n in get_children ():
95
95
if is_exiting and n == node :
96
96
continue
@@ -112,8 +112,8 @@ func _check_multiple_enabled_navpolys(node: Node = null, is_exiting: bool = fals
112
112
else :
113
113
navigation_enabled_found = true
114
114
current_active_navigation_instance = n
115
-
116
-
115
+
116
+
117
117
# Return the Color of the lightmap pixel for the specified position
118
118
#
119
119
# #### Parameters
0 commit comments