Activate Physics Process in SpringArm3D.

(cherry picked from commit 152303bf51)
This commit is contained in:
Andrea Catania 2020-04-17 16:22:24 +02:00 committed by Rémi Verschelde
parent 2a10e30119
commit 4a6f2b8af6
1 changed files with 2 additions and 2 deletions

View File

@ -45,12 +45,12 @@ void SpringArm::_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: