mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 13:43:15 +00:00
Fix own world option of Viewport.
It happens when the viewport has WorldEnviroment child with a valid Enviroment
This commit is contained in:
parent
d7dd10a1a2
commit
6b154c9706
@ -1083,7 +1083,7 @@ void Viewport::_propagate_exit_world(Node *p_node) {
|
||||
Spatial *s = p_node->cast_to<Spatial>();
|
||||
if (s) {
|
||||
|
||||
s->notification(Spatial::NOTIFICATION_EXIT_WORLD,false);
|
||||
s->notification(Spatial::NOTIFICATION_EXIT_WORLD, true);
|
||||
} else {
|
||||
Viewport *v = p_node->cast_to<Viewport>();
|
||||
if (v) {
|
||||
|
Loading…
Reference in New Issue
Block a user