mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
Set opacity of multiple layers at once
This commit is contained in:
parent
d17a151f8d
commit
cd2787b373
|
@ -990,12 +990,9 @@ func _on_MergeDownLayer_pressed() -> void:
|
||||||
|
|
||||||
func _on_OpacitySlider_value_changed(value: float) -> void:
|
func _on_OpacitySlider_value_changed(value: float) -> void:
|
||||||
var new_opacity := value / 100.0
|
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:
|
for idx_pair in Global.current_project.selected_cels:
|
||||||
if idx_pair[1] == current_layer_idx:
|
var layer := Global.current_project.layers[idx_pair[1]]
|
||||||
var layer := Global.current_project.layers[current_layer_idx]
|
layer.opacity = new_opacity
|
||||||
layer.opacity = new_opacity
|
|
||||||
Global.canvas.queue_redraw()
|
Global.canvas.queue_redraw()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue