Fix editor-only visibility for lights

* Update visibility again for editor-only lights if owner changes.

Fixes #26399, supersedes #52327

(cherry picked from commit d69e3791bf)
This commit is contained in:
reduz
2022-06-23 08:19:18 +02:00
committed by Rémi Verschelde
parent 2d54d3d71d
commit 995281ca90
6 changed files with 20 additions and 0 deletions

View File

@@ -458,6 +458,9 @@ void Node::move_child_notify(Node *p_child) {
// to be used when not wanted
}
void Node::owner_changed_notify() {
}
void Node::_physics_interpolated_changed() {}
void Node::set_physics_process(bool p_process) {
@@ -1605,6 +1608,8 @@ void Node::_set_owner_nocheck(Node *p_owner) {
data.owner = p_owner;
data.owner->data.owned.push_back(this);
data.OW = data.owner->data.owned.back();
owner_changed_notify();
}
void Node::_release_unique_name_in_owner() {