From 319c1297c4b05705e25ffeb89d1e8dccfd056fe0 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 7 Jun 2018 21:18:36 +0000 Subject: [PATCH] Add nodes to an accessible group after they are augmented. --- addons/accessibility/accessible.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/accessibility/accessible.gd b/addons/accessibility/accessible.gd index 1cec189..c5a7eec 100644 --- a/addons/accessibility/accessible.gd +++ b/addons/accessibility/accessible.gd @@ -12,6 +12,9 @@ func gui_input(): print("GUI input.") func _init(node): + if node.is_in_group("accessible"): + return + node.add_to_group("accessible") # print(node.get_path()) self.node = node self.node.connect("focus_entered", self, "focused")