summaryrefslogtreecommitdiffstats
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2022-06-23 08:19:18 +0200
committerreduz <reduzio@gmail.com>2022-06-23 08:19:18 +0200
commitd69e3791bf41dca6c29a9eb24bb92648cce2d692 (patch)
treea8ca3ff213aad1d5d8210a608092d4ed33b9f637 /scene/main/node.cpp
parentabb92861f44427e9376fab9ee2f414f14848d6b5 (diff)
downloadredot-engine-d69e3791bf41dca6c29a9eb24bb92648cce2d692.tar.gz
Fix editor-only visibility for lights
* Update visibility again for editor-only lights if owner changes. Fixes #26399, supersedes #52327
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r--scene/main/node.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index b5caec3fc3..a30eb036db 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -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() {