summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-04 13:17:56 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-04 13:19:08 -0300
commit3ae61f22921520e473a9e95783f0fcc03a5c6a54 (patch)
treeab83770fb82787e438e673062a87a988ce3917a9 /scene
parent280e3611b90c40fc26c7b7295430703f70f50f03 (diff)
Created a NodeDock with signals and groups
Diffstat (limited to 'scene')
-rw-r--r--scene/main/node.cpp12
-rw-r--r--scene/main/node.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index f261693841..29925b62f5 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1244,7 +1244,19 @@ void Node::get_groups(List<GroupInfo> *p_groups) const {
}
+bool Node::has_persistent_groups() const {
+ const StringName *K=NULL;
+
+ while ((K=data.grouped.next(K))) {
+
+ if (data.grouped[*K].persistent)
+ return true;
+ }
+
+ return false;
+
+}
void Node::_print_tree(const Node *p_node) {
print_line(String(p_node->get_path_to(this)));
diff --git a/scene/main/node.h b/scene/main/node.h
index a4683e602f..cf62e7cdea 100644
--- a/scene/main/node.h
+++ b/scene/main/node.h
@@ -223,6 +223,7 @@ public:
};
void get_groups(List<GroupInfo> *p_groups) const;
+ bool has_persistent_groups() const;
void move_child(Node *p_child,int p_pos);
void raise();