Merge pull request #53022 from Schweini07/ve2d-signal-fix
This commit is contained in:
commit
792f95a264
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user