1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +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]]) cels.append(project.frames[cel_index[0]].cels[cel_index[1]])
else: else:
for frame in project.frames: 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) cels.append(cel)
for cel in cels: for cel in cels:
if cel is GroupCel: if not cel is PixelCel:
continue continue
var image: Image = cel.image var image: Image = cel.image
image.unlock() image.unlock()