summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2020-04-17 16:22:24 +0200
committerGitHub <noreply@github.com>2020-04-17 16:22:24 +0200
commit152303bf5119745e6bc545be46f2c3ec89b08729 (patch)
treea7fab7d43a3a2af331002c65db0bb225f08c0a60 /scene
parent924cecf0b0a90d8cc3c086361d8794f22cc59ef0 (diff)
Activate Physics Process in SpringArm3D.
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/spring_arm_3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/spring_arm_3d.cpp b/scene/3d/spring_arm_3d.cpp
index 281be3f7d3..4d35d3b3da 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_PROCESS: