From 6b154c9706c4dc99728195d5009d42782bf51b86 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 --- 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 c6a32d55687..bb6e6e289b9 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1083,7 +1083,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) {