summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2016-01-24 16:42:53 -0300
committerreduz <reduzio@gmail.com>2016-01-24 16:42:53 -0300
commit45b2fe7e8bbf41cf8e2c1526d28707e680a41538 (patch)
tree6dd91fa76972677ee10c3da72c984bf44a9d593e
parente997c0d24235a53167d9f18156669687e98fe24e (diff)
parent021fc47434f68028167cf4bb914c92c86d72a493 (diff)
Merge branch 'master' of https://github.com/okamstudio/godot
-rw-r--r--scene/resources/scene_format_text.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp
index 2f18e70d7f..0a8eddcc3b 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;i<groups.size();i++) {
+ packed_scene->get_state()->add_node_group(node_id,packed_scene->get_state()->add_name(groups[i]));
+ }
+ }
while(true) {