diff --git a/scene/2d/visibility_notifier_2d.cpp b/scene/2d/visibility_notifier_2d.cpp index c86f1a50da9..4b1be504f69 100644 --- a/scene/2d/visibility_notifier_2d.cpp +++ b/scene/2d/visibility_notifier_2d.cpp @@ -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); } }