Fix own world option of Viewport.

It happens when the viewport has WorldEnviroment child with a valid Enviroment
This commit is contained in:
Franklin Sobrinho 2016-07-08 14:27:19 -03:00
parent d7dd10a1a2
commit 6b154c9706

View File

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