Decouple node.h from scene_tree.h, minimize its other includes

This commit is contained in:
Rémi Verschelde
2026-03-04 17:43:08 +01:00
parent b12b7bc622
commit 2dd1f4ef60
122 changed files with 179 additions and 60 deletions
+5
View File
@@ -49,6 +49,7 @@ STATIC_ASSERT_INCOMPLETE_TYPE(class, Engine);
#include "scene/animation/tween.h"
#include "scene/main/instance_placeholder.h"
#include "scene/main/multiplayer_api.h"
#include "scene/main/scene_tree.h"
#include "scene/main/viewport.h"
#include "scene/main/window.h"
#include "scene/resources/packed_scene.h"
@@ -971,6 +972,10 @@ void Node::set_physics_interpolation_mode(PhysicsInterpolationMode p_mode) {
}
}
bool Node::is_physics_interpolated_and_enabled() const {
return SceneTree::is_fti_enabled() && is_physics_interpolated();
}
void Node::reset_physics_interpolation() {
if (SceneTree::is_fti_enabled() && is_inside_tree()) {
propagate_notification(NOTIFICATION_RESET_PHYSICS_INTERPOLATION);