mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-12 08:43:08 +00:00
Fix blend mode option button selecting the wrong option when changing cels
This commit is contained in:
parent
a84b92c5a8
commit
ff8f06bd47
|
@ -524,7 +524,10 @@ func change_cel(new_frame: int, new_layer := -1) -> void:
|
||||||
if current_frame < frames.size(): # Set opacity slider
|
if current_frame < frames.size(): # Set opacity slider
|
||||||
var cel_opacity := frames[current_frame].cels[current_layer].opacity
|
var cel_opacity := frames[current_frame].cels[current_layer].opacity
|
||||||
Global.layer_opacity_slider.value = cel_opacity * 100
|
Global.layer_opacity_slider.value = cel_opacity * 100
|
||||||
Global.animation_timeline.blend_modes_button.selected = layers[current_layer].blend_mode
|
var blend_mode_index: int = Global.animation_timeline.blend_modes_button.get_item_index(
|
||||||
|
layers[current_layer].blend_mode
|
||||||
|
)
|
||||||
|
Global.animation_timeline.blend_modes_button.selected = blend_mode_index
|
||||||
Global.canvas.queue_redraw()
|
Global.canvas.queue_redraw()
|
||||||
Global.transparent_checker.update_rect()
|
Global.transparent_checker.update_rect()
|
||||||
Global.cel_changed.emit()
|
Global.cel_changed.emit()
|
||||||
|
|
Loading…
Reference in a new issue