Activate Physics Process in SpringArm3D.
This commit is contained in:
parent
924cecf0b0
commit
152303bf51
|
@ -45,12 +45,12 @@ void SpringArm3D::_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_PROCESS:
|
case NOTIFICATION_INTERNAL_PROCESS:
|
||||||
|
|
Loading…
Reference in New Issue