diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-17 17:38:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 17:38:22 +0200 |
commit | 077dbdf24640b7260d210add313ecbc680f72532 (patch) | |
tree | 52652db3c6fbf8c4d5b2f1d054b92ad6f7803aea /scene/3d/spring_arm_3d.cpp | |
parent | 32f95c2f8782f7e524310b4c040f86cb475fdab2 (diff) | |
parent | 152303bf5119745e6bc545be46f2c3ec89b08729 (diff) |
Merge pull request #37964 from AndreaCatania/AndreaCatania-patch-2
Activate Physics Process in SpringArm3D.
Diffstat (limited to 'scene/3d/spring_arm_3d.cpp')
-rw-r--r-- | scene/3d/spring_arm_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/spring_arm_3d.cpp b/scene/3d/spring_arm_3d.cpp index a5460593c9..0ffde7aa8f 100644 --- a/scene/3d/spring_arm_3d.cpp +++ b/scene/3d/spring_arm_3d.cpp @@ -45,12 +45,12 @@ void SpringArm3D::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: if (!Engine::get_singleton()->is_editor_hint()) { - set_process_internal(true); + set_physics_process_internal(true); } break; case NOTIFICATION_EXIT_TREE: if (!Engine::get_singleton()->is_editor_hint()) { - set_process_internal(false); + set_physics_process_internal(false); } break; case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: |