From 703004f830f39adcde9b9565f1aa49d1b10e8d27 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 16 Jun 2014 10:22:26 -0300 Subject: More 3D Work -=-=-=-=-=- -ESM Shadow Mapping for softer and less glitchy shadows -HDR Pipeline (convert to Linear on texture import, convert to SRGB at the end) -Fix to xml parse bug --- scene/main/node.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'scene/main/node.cpp') diff --git a/scene/main/node.cpp b/scene/main/node.cpp index d4f043c538..042666988a 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -1078,6 +1078,18 @@ void Node::remove_from_group(const StringName& p_identifier) { } +Array Node::_get_groups() const { + + Array groups; + List gi; + get_groups(&gi); + for (List::Element *E=gi.front();E;E=E->next()) { + groups.push_back(E->get().name); + } + + return groups; +} + void Node::get_groups(List *p_groups) const { const StringName *K=NULL; @@ -1712,6 +1724,7 @@ void Node::_bind_methods() { ObjectTypeDB::bind_method(_MD("remove_from_group","group"),&Node::remove_from_group); ObjectTypeDB::bind_method(_MD("is_in_group","group"),&Node::is_in_group); ObjectTypeDB::bind_method(_MD("move_child","child_node:Node","to_pos"),&Node::move_child); + ObjectTypeDB::bind_method(_MD("get_groups"),&Node::_get_groups); ObjectTypeDB::bind_method(_MD("raise"),&Node::raise); ObjectTypeDB::bind_method(_MD("set_owner","owner:Node"),&Node::set_owner); ObjectTypeDB::bind_method(_MD("get_owner:Node"),&Node::get_owner); -- cgit v1.2.3