summaryrefslogtreecommitdiff
path: root/scene/main/scene_main_loop.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/scene_main_loop.h')
-rw-r--r--scene/main/scene_main_loop.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/scene/main/scene_main_loop.h b/scene/main/scene_main_loop.h
index 5fc9e0c1ae..15604a3460 100644
--- a/scene/main/scene_main_loop.h
+++ b/scene/main/scene_main_loop.h
@@ -76,8 +76,9 @@ private:
struct Group {
Vector<Node*> nodes;
- uint64_t last_tree_version;
- Group() { last_tree_version=0; };
+ //uint64_t last_tree_version;
+ bool changed;
+ Group() { changed=false; };
};
Viewport *root;
@@ -135,7 +136,7 @@ private:
void _flush_ugc();
void _flush_transform_notifications();
- void _update_group_order(Group& g);
+ _FORCE_INLINE_ void _update_group_order(Group& g);
void _update_listener();
Array _get_nodes_in_group(const StringName& p_group);
@@ -162,7 +163,7 @@ friend class Node;
void node_removed(Node *p_node);
- void add_to_group(const StringName& p_group, Node *p_node);
+ Group* add_to_group(const StringName& p_group, Node *p_node);
void remove_from_group(const StringName& p_group, Node *p_node);
void _notify_group_pause(const StringName& p_group,int p_notification);