Merge pull request #17537 from Noshyaar/intcam

InterpolatedCamera: use internal_process
This commit is contained in:
Rémi Verschelde 2018-03-16 08:10:37 +01:00 committed by GitHub
commit f17c35b447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,10 +38,10 @@ void InterpolatedCamera::_notification(int p_what) {
case NOTIFICATION_ENTER_TREE: { case NOTIFICATION_ENTER_TREE: {
if (Engine::get_singleton()->is_editor_hint() && enabled) if (Engine::get_singleton()->is_editor_hint() && enabled)
set_physics_process(false); set_process_internal(false);
} break; } break;
case NOTIFICATION_PROCESS: { case NOTIFICATION_INTERNAL_PROCESS: {
if (!enabled) if (!enabled)
break; break;
@ -111,9 +111,9 @@ void InterpolatedCamera::set_interpolation_enabled(bool p_enable) {
if (p_enable) { if (p_enable) {
if (is_inside_tree() && Engine::get_singleton()->is_editor_hint()) if (is_inside_tree() && Engine::get_singleton()->is_editor_hint())
return; return;
set_process(true); set_process_internal(true);
} else } else
set_process(false); set_process_internal(false);
} }
bool InterpolatedCamera::is_interpolation_enabled() const { bool InterpolatedCamera::is_interpolation_enabled() const {