From c5a2aff6db2ee419c544a4eb38f2629f4f9555ee Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 9 Jun 2016 22:30:34 -0300 Subject: [PATCH] fixes wrong bool return, closes #5037 --- 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 4083dc893d4..aef53ea230e 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1210,7 +1210,7 @@ void Viewport::set_size_override_stretch(bool p_enable) { bool Viewport::is_size_override_stretch_enabled() const { - return size_override; + return size_override_stretch; } void Viewport::set_as_render_target(bool p_enable){