Skip to content

Commit

Permalink
Merge pull request #90246 from rburing/fti_2d_per_node
Browse files Browse the repository at this point in the history
Fix per-node physics interpolation setting
  • Loading branch information
akien-mga committed Apr 5, 2024
2 parents 6a64e5a + e6b9161 commit 4ff5731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/main/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3780,7 +3780,7 @@ void Node::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::INT, "process_thread_messages", PROPERTY_HINT_FLAGS, "Process,Physics Process"), "set_process_thread_messages", "get_process_thread_messages");

ADD_GROUP("Physics Interpolation", "physics_interpolation_");
ADD_PROPERTY(PropertyInfo(Variant::INT, "physics_interpolation_mode", PROPERTY_HINT_ENUM, "Inherit,Off,On"), "set_physics_interpolation_mode", "get_physics_interpolation_mode");
ADD_PROPERTY(PropertyInfo(Variant::INT, "physics_interpolation_mode", PROPERTY_HINT_ENUM, "Inherit,On,Off"), "set_physics_interpolation_mode", "get_physics_interpolation_mode");

ADD_GROUP("Auto Translate", "auto_translate_");
ADD_PROPERTY(PropertyInfo(Variant::INT, "auto_translate_mode", PROPERTY_HINT_ENUM, "Inherit,Always,Disabled"), "set_auto_translate_mode", "get_auto_translate_mode");
Expand Down Expand Up @@ -3833,7 +3833,7 @@ Node::Node() {
data.unhandled_input = false;
data.unhandled_key_input = false;

data.physics_interpolated = false;
data.physics_interpolated = true;

data.parent_owned = false;
data.in_constructor = true;
Expand Down

0 comments on commit 4ff5731

Please sign in to comment.