Merge pull request #5598 from TheHX/issue-5482

Fix own world option of Viewport.
This commit is contained in:
Juan Linietsky 2016-07-08 15:05:57 -03:00 committed by GitHub
commit 20aee6f528

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