From 2493cb1e26ba9a0a85ae46a81a054dabd9f68e57 Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Sun, 24 Jan 2016 10:32:46 -0300 Subject: [PATCH] Fix .tscn format not loading groups --- scene/resources/scene_format_text.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp index 2f18e70d7fb..0a8eddcc3bd 100644 --- a/scene/resources/scene_format_text.cpp +++ b/scene/resources/scene_format_text.cpp @@ -394,6 +394,13 @@ Error ResourceInteractiveLoaderText::poll() { int node_id = packed_scene->get_state()->add_node(parent,owner,type,name,instance); + if (next_tag.fields.has("groups")) { + + Array groups = next_tag.fields["groups"]; + for (int i=0;iget_state()->add_node_group(node_id,packed_scene->get_state()->add_name(groups[i])); + } + } while(true) {