mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user