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

Fix crash when attempting to draw on a GroupCel when the animation is playing

This commit is contained in:
Emmanouil Papadeas 2023-01-07 20:32:02 +02:00
parent 449ee60d49
commit 2d9bc7e660

View file

@ -575,10 +575,12 @@ func _get_undo_data() -> Dictionary:
cels.append(project.frames[cel_index[0]].cels[cel_index[1]])
else:
for frame in project.frames:
var cel: PixelCel = frame.cels[project.current_layer]
var cel: BaseCel = frame.cels[project.current_layer]
if not cel is PixelCel:
continue
cels.append(cel)
for cel in cels:
if cel is GroupCel:
if not cel is PixelCel:
continue
var image: Image = cel.image
image.unlock()