소스 검색

Merge pull request #37964 from AndreaCatania/AndreaCatania-patch-2

Activate Physics Process in SpringArm3D.
Rémi Verschelde 5 년 전
부모
커밋
077dbdf246
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      scene/3d/spring_arm_3d.cpp

+ 2 - 2
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: