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:
parent
449ee60d49
commit
2d9bc7e660
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue