From 1dce3ebe22a80833a3797469310d8beb534237ce Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Mon, 29 Jan 2024 16:37:56 +0200 Subject: [PATCH] Change get_tree().get_root() to get_window() in TransparentChecker.gd --- src/UI/Nodes/TransparentChecker.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/Nodes/TransparentChecker.gd b/src/UI/Nodes/TransparentChecker.gd index 658ea1367..a1d39cb8a 100644 --- a/src/UI/Nodes/TransparentChecker.gd +++ b/src/UI/Nodes/TransparentChecker.gd @@ -45,10 +45,10 @@ func update_transparency(value: float) -> void: # Change the transparency status of the parent viewport and the root viewport if value == 1.0: get_parent().transparent_bg = false - get_tree().get_root().transparent_bg = false + get_window().transparent_bg = false else: get_parent().transparent_bg = true - get_tree().get_root().transparent_bg = true + get_window().transparent_bg = true # Set a minimum amount for the fade so the canvas won't disappear material.set_shader_parameter("alpha", clampf(value, 0.1, 1))