Fix VisibilityEnabler2D throwing a signal error when process_parent or physics_process_parent are enabled
This commit is contained in:
parent
c26547414d
commit
aad01cd0c6
1 changed files with 2 additions and 2 deletions
|
@ -242,11 +242,11 @@ void VisibilityEnabler2D::_notification(int p_what) {
|
||||||
|
|
||||||
if (enabler[ENABLER_PARENT_PHYSICS_PROCESS] && get_parent()) {
|
if (enabler[ENABLER_PARENT_PHYSICS_PROCESS] && get_parent()) {
|
||||||
get_parent()->connect(SceneStringNames::get_singleton()->ready,
|
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()) {
|
if (enabler[ENABLER_PARENT_PROCESS] && get_parent()) {
|
||||||
get_parent()->connect(SceneStringNames::get_singleton()->ready,
|
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 a new issue