From 6a83c87dda4a6071f8a8add70c0ae4492378eef9 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 (cherry picked from commit c5a2aff6db2ee419c544a4eb38f2629f4f9555ee) --- 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 c4d27602048..dec0910fb54 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1118,7 +1118,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){