mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Update TransparentChecker's size of all viewports
This commit is contained in:
parent
a05f8ac4ab
commit
af078d590d
|
@ -3,6 +3,9 @@ extends ColorRect
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
rect_size = Global.current_project.size
|
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("size", Global.checker_size)
|
||||||
material.set_shader_param("color1", Global.checker_color_1)
|
material.set_shader_param("color1", Global.checker_color_1)
|
||||||
material.set_shader_param("color2", Global.checker_color_2)
|
material.set_shader_param("color2", Global.checker_color_2)
|
||||||
|
|
Loading…
Reference in a new issue