summaryrefslogtreecommitdiffstats
path: root/scene/main/scene_tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/scene_tree.h')
-rw-r--r--scene/main/scene_tree.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/scene/main/scene_tree.h b/scene/main/scene_tree.h
index a7515f0243..6f0a61ec51 100644
--- a/scene/main/scene_tree.h
+++ b/scene/main/scene_tree.h
@@ -122,7 +122,6 @@ private:
Window *root = nullptr;
- uint64_t tree_version = 1;
double physics_process_time = 0.0;
double process_time = 0.0;
bool accept_quit = true;
@@ -134,11 +133,12 @@ private:
bool debug_navigation_hint = false;
#endif
bool paused = false;
- int root_lock = 0;
HashMap<StringName, Group> group_map;
bool _quit = false;
+ bool _physics_interpolation_enabled = false;
+
StringName tree_changed_name = "tree_changed";
StringName node_added_name = "node_added";
StringName node_removed_name = "node_removed";
@@ -163,7 +163,6 @@ private:
// Safety for when a node is deleted while a group is being called.
- bool processing = false;
int nodes_removed_on_group_call_lock = 0;
HashSet<Node *> nodes_removed_on_group_call; // Skip erased nodes.
@@ -313,6 +312,8 @@ public:
virtual void initialize() override;
+ virtual void iteration_prepare() override;
+
virtual bool physics_process(double p_time) override;
virtual bool process(double p_time) override;
@@ -329,12 +330,6 @@ public:
_FORCE_INLINE_ double get_physics_process_time() const { return physics_process_time; }
_FORCE_INLINE_ double get_process_time() const { return process_time; }
-#ifdef TOOLS_ENABLED
- bool is_node_being_edited(const Node *p_node) const;
-#else
- bool is_node_being_edited(const Node *p_node) const { return false; }
-#endif
-
void set_pause(bool p_enabled);
bool is_paused() const;
@@ -425,6 +420,9 @@ public:
void set_disable_node_threading(bool p_disable);
//default texture settings
+ void set_physics_interpolation_enabled(bool p_enabled);
+ bool is_physics_interpolation_enabled() const;
+
SceneTree();
~SceneTree();
};