mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03: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:
@@ -176,6 +176,11 @@ Ref<Texture2D> Light3D::get_projector() const {
|
||||
return projector;
|
||||
}
|
||||
|
||||
void Light3D::owner_changed_notify() {
|
||||
// For cases where owner changes _after_ entering tree (as example, editor editing).
|
||||
_update_visibility();
|
||||
}
|
||||
|
||||
void Light3D::_update_visibility() {
|
||||
if (!is_inside_tree()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user