Explorar o código

Activate Physics Process in SpringArm3D.

(cherry picked from commit 152303bf5119745e6bc545be46f2c3ec89b08729)
Andrea Catania %!s(int64=5) %!d(string=hai) anos
pai
achega
4a6f2b8af6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      scene/3d/spring_arm.cpp

+ 2 - 2
scene/3d/spring_arm.cpp

@@ -45,12 +45,12 @@ void SpringArm::_notification(int p_what) {
 	switch (p_what) {
 	switch (p_what) {
 		case NOTIFICATION_ENTER_TREE:
 		case NOTIFICATION_ENTER_TREE:
 			if (!Engine::get_singleton()->is_editor_hint()) {
 			if (!Engine::get_singleton()->is_editor_hint()) {
-				set_process_internal(true);
+				set_physics_process_internal(true);
 			}
 			}
 			break;
 			break;
 		case NOTIFICATION_EXIT_TREE:
 		case NOTIFICATION_EXIT_TREE:
 			if (!Engine::get_singleton()->is_editor_hint()) {
 			if (!Engine::get_singleton()->is_editor_hint()) {
-				set_process_internal(false);
+				set_physics_process_internal(false);
 			}
 			}
 			break;
 			break;
 		case NOTIFICATION_INTERNAL_PHYSICS_PROCESS:
 		case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: