You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-03 16:55:53 +00:00
FTI - Change SceneTree global setting to static
Also fixup FTI configuration warnings so that they only output when the project is using FTI.
This commit is contained in:
@@ -137,6 +137,9 @@ void SceneTree::ClientPhysicsInterpolation::physics_process() {
|
||||
}
|
||||
#endif // _3D_DISABLED
|
||||
|
||||
bool SceneTree::_physics_interpolation_enabled = false;
|
||||
bool SceneTree::_physics_interpolation_enabled_in_project = false;
|
||||
|
||||
void SceneTree::tree_changed() {
|
||||
emit_signal(tree_changed_name);
|
||||
}
|
||||
@@ -566,6 +569,9 @@ void SceneTree::initialize() {
|
||||
}
|
||||
|
||||
void SceneTree::set_physics_interpolation_enabled(bool p_enabled) {
|
||||
// This version is for use in editor.
|
||||
_physics_interpolation_enabled_in_project = p_enabled;
|
||||
|
||||
// We never want interpolation in the editor.
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
p_enabled = false;
|
||||
@@ -586,10 +592,6 @@ void SceneTree::set_physics_interpolation_enabled(bool p_enabled) {
|
||||
}
|
||||
}
|
||||
|
||||
bool SceneTree::is_physics_interpolation_enabled() const {
|
||||
return _physics_interpolation_enabled;
|
||||
}
|
||||
|
||||
#ifndef _3D_DISABLED
|
||||
void SceneTree::client_physics_interpolation_add_node_3d(SelfList<Node3D> *p_elem) {
|
||||
// This ensures that _update_physics_interpolation_data() will be called at least once every
|
||||
|
||||
Reference in New Issue
Block a user