From af078d590da6fdc1110c17bfab77262faefc2a77 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 13 Jun 2020 15:33:59 +0300 Subject: [PATCH] Update TransparentChecker's size of all viewports --- src/UI/TransparentChecker.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/UI/TransparentChecker.gd b/src/UI/TransparentChecker.gd index 415161b75..2b5c98955 100644 --- a/src/UI/TransparentChecker.gd +++ b/src/UI/TransparentChecker.gd @@ -3,6 +3,9 @@ extends ColorRect func _ready() -> void: rect_size = Global.current_project.size + if get_parent().get_parent() == Global.main_viewport: + Global.second_viewport.get_node("Viewport/TransparentChecker")._ready() + Global.small_preview_viewport.get_node("Viewport/TransparentChecker")._ready() material.set_shader_param("size", Global.checker_size) material.set_shader_param("color1", Global.checker_color_1) material.set_shader_param("color2", Global.checker_color_2)