Merge pull request #53022 from Schweini07/ve2d-signal-fix

This commit is contained in:
Rémi Verschelde 2021-09-24 23:15:45 +02:00 committed by GitHub
commit 792f95a264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,11 +242,11 @@ void VisibilityEnabler2D::_notification(int p_what) {
if (enabler[ENABLER_PARENT_PHYSICS_PROCESS] && get_parent()) {
get_parent()->connect(SceneStringNames::get_singleton()->ready,
get_parent(), "set_physics_process", varray(false), CONNECT_ONESHOT);
get_parent(), "set_physics_process", varray(false), CONNECT_REFERENCE_COUNTED);
}
if (enabler[ENABLER_PARENT_PROCESS] && get_parent()) {
get_parent()->connect(SceneStringNames::get_singleton()->ready,
get_parent(), "set_process", varray(false), CONNECT_ONESHOT);
get_parent(), "set_process", varray(false), CONNECT_REFERENCE_COUNTED);
}
}