Fix own world option of Viewport.
It happens when the viewport has WorldEnviroment child with a valid Enviroment
(cherry picked from commit 6b154c9706
)
This commit is contained in:
parent
6e7db99614
commit
90c8dbb890
|
@ -996,7 +996,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