1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Fix layer effect slider values being rounded to the nearest integer

This commit is contained in:
Emmanouil Papadeas 2024-11-12 00:47:53 +02:00
parent 5fa97988b5
commit b0b1361722

View file

@ -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)