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

Fix bug where the wrong cel would be drawn on the canvas when undoing

This commit is contained in:
Emmanouil Papadeas 2023-12-24 14:47:35 +02:00
parent d36f89365c
commit dffaf1d504

View file

@ -116,6 +116,9 @@ func update_texture(layer_i: int, frame_i := -1, project := Global.current_proje
current_cel.update_texture()
# Needed so that changes happening to the non-selected layer(s) are also visible
# e.g. when undoing/redoing, when applying image effects to the entire frame, etc
if frame_i != project.current_frame:
# Don't update if the cel is on a different frame (can happen with undo/redo)
return
var layer := project.layers[layer_i]
var cel_image: Image
if Global.display_layer_effects: