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:
Franklin Sobrinho 2016-07-08 14:27:19 -03:00 committed by Rémi Verschelde
parent 6e7db99614
commit 90c8dbb890
1 changed files with 1 additions and 1 deletions

View File

@ -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) {