From b0b13617224089f98a6f7ef2ded5dd4c8bbe50bb Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 12 Nov 2024 00:47:53 +0200 Subject: [PATCH] Fix layer effect slider values being rounded to the nearest integer --- src/Classes/ShaderLoader.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Classes/ShaderLoader.gd b/src/Classes/ShaderLoader.gd index e2f7a8a62..495bc5c46 100644 --- a/src/Classes/ShaderLoader.gd +++ b/src/Classes/ShaderLoader.gd @@ -148,13 +148,13 @@ static func create_ui_for_shader_uniforms( if u_value != "": slider.value = int(u_value) + slider.min_value = min_value + slider.max_value = max_value + slider.step = step if params.has(u_name): slider.value = params[u_name] else: params[u_name] = slider.value - slider.min_value = min_value - slider.max_value = max_value - slider.step = step slider.value_changed.connect(value_changed.bind(u_name)) slider.mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND hbox.add_child(slider)