mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-27 06:35:16 +00:00
Avoid clearing slice from a layer with no cel
This commit is contained in:
parent
0d5ecf3c02
commit
777715a56f
@ -39,6 +39,9 @@ ClearSlices::ClearSlices(const Site& site,
|
||||
|
||||
for (auto* layer : layers) {
|
||||
Cel* cel = layer->cel(frame);
|
||||
if (!cel)
|
||||
continue;
|
||||
|
||||
SlicesContent sc(cel);
|
||||
for (const auto& sk : slicesKeys) {
|
||||
sc.mask.add(sk.bounds());
|
||||
|
Loading…
x
Reference in New Issue
Block a user