mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fix layer effect slider values being rounded to the nearest integer
This commit is contained in:
parent
5fa97988b5
commit
b0b1361722
|
@ -148,13 +148,13 @@ static func create_ui_for_shader_uniforms(
|
||||||
|
|
||||||
if u_value != "":
|
if u_value != "":
|
||||||
slider.value = int(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):
|
if params.has(u_name):
|
||||||
slider.value = params[u_name]
|
slider.value = params[u_name]
|
||||||
else:
|
else:
|
||||||
params[u_name] = slider.value
|
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.value_changed.connect(value_changed.bind(u_name))
|
||||||
slider.mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND
|
slider.mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND
|
||||||
hbox.add_child(slider)
|
hbox.add_child(slider)
|
||||||
|
|
Loading…
Reference in a new issue