From 90c8dbb89058c80c5f229c8586dde0a3eea59360 Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Fri, 8 Jul 2016 14:27:19 -0300 Subject: [PATCH] Fix own world option of Viewport. It happens when the viewport has WorldEnviroment child with a valid Enviroment (cherry picked from commit 6b154c9706c4dc99728195d5009d42782bf51b86) --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index d99aeb1d4b2..3e408d24e7d 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -996,7 +996,7 @@ void Viewport::_propagate_exit_world(Node *p_node) { Spatial *s = p_node->cast_to(); if (s) { - s->notification(Spatial::NOTIFICATION_EXIT_WORLD,false); + s->notification(Spatial::NOTIFICATION_EXIT_WORLD, true); } else { Viewport *v = p_node->cast_to(); if (v) {