You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix editor-only visibility for lights
* Update visibility again for editor-only lights if owner changes. Fixes #26399, supersedes #52327
This commit is contained in:
@@ -420,6 +420,9 @@ void Node::move_child_notify(Node *p_child) {
|
||||
// to be used when not wanted
|
||||
}
|
||||
|
||||
void Node::owner_changed_notify() {
|
||||
}
|
||||
|
||||
void Node::set_physics_process(bool p_process) {
|
||||
if (data.physics_process == p_process) {
|
||||
return;
|
||||
@@ -1544,6 +1547,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