1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fixed viewport transparent bg when clear mode is enabled.

This commit is contained in:
Daniel J. Ramirez
2017-10-21 02:06:10 -05:00
parent 8bc96cc146
commit d67e77e837
2 changed files with 5 additions and 1 deletions

View File

@@ -72,6 +72,8 @@ public:
VS::ViewportClearMode clear_mode;
bool transparent_bg;
struct CanvasKey {
int layer;
@@ -101,6 +103,7 @@ public:
Viewport() {
update_mode = VS::VIEWPORT_UPDATE_WHEN_VISIBLE;
clear_mode = VS::VIEWPORT_CLEAR_ALWAYS;
transparent_bg = false;
disable_environment = false;
viewport_to_screen = 0;
shadow_atlas_size = 0;