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

Set opacity of multiple layers at once

This commit is contained in:
Emmanouil Papadeas 2024-03-07 01:16:43 +02:00
parent d17a151f8d
commit cd2787b373

View file

@ -990,12 +990,9 @@ func _on_MergeDownLayer_pressed() -> void:
func _on_OpacitySlider_value_changed(value: float) -> void:
var new_opacity := value / 100.0
var current_layer_idx := Global.current_project.current_layer
# Also update all selected frames.
for idx_pair in Global.current_project.selected_cels:
if idx_pair[1] == current_layer_idx:
var layer := Global.current_project.layers[current_layer_idx]
layer.opacity = new_opacity
var layer := Global.current_project.layers[idx_pair[1]]
layer.opacity = new_opacity
Global.canvas.queue_redraw()