From bccb4840c8897434274d102649399bd660e9a1fc Mon Sep 17 00:00:00 2001 From: binbitten Date: Thu, 18 Jan 2018 19:11:07 +0100 Subject: [PATCH] Fix wrong viewport transparent-bg --- servers/visual/visual_server_viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/visual/visual_server_viewport.cpp b/servers/visual/visual_server_viewport.cpp index 222dc6351b9..3eb8953c1fa 100644 --- a/servers/visual/visual_server_viewport.cpp +++ b/servers/visual/visual_server_viewport.cpp @@ -505,7 +505,7 @@ void VisualServerViewport::viewport_set_transparent_background(RID p_viewport, b ERR_FAIL_COND(!viewport); VSG::storage->render_target_set_flag(viewport->render_target, RasterizerStorage::RENDER_TARGET_TRANSPARENT, p_enabled); - viewport->transparent_bg = true; + viewport->transparent_bg = p_enabled; } void VisualServerViewport::viewport_set_global_canvas_transform(RID p_viewport, const Transform2D &p_transform) {