Merge pull request #34352 from Rastrizh/fix_object_disconnect
Fix object disconnect
This commit is contained in:
commit
0dc267634b
|
@ -319,8 +319,6 @@ void VisibilityEnabler2D::_node_removed(Node *p_node) {
|
|||
|
||||
if (!visible)
|
||||
_change_node_state(p_node, true);
|
||||
//changed to one shot, not needed
|
||||
//p_node->disconnect(SceneStringNames::get_singleton()->exit_scene,this,"_node_removed");
|
||||
nodes.erase(p_node);
|
||||
}
|
||||
|
||||
|
|
|
@ -240,7 +240,6 @@ void VisibilityEnabler::_node_removed(Node *p_node) {
|
|||
|
||||
if (!visible)
|
||||
_change_node_state(p_node, true);
|
||||
p_node->disconnect(SceneStringNames::get_singleton()->tree_exiting, this, "_node_removed");
|
||||
nodes.erase(p_node);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue