Avoid clearing slice from a layer with no cel

This commit is contained in:
Martín Capello 2024-08-02 16:00:41 -03:00 committed by David Capello
parent 0d5ecf3c02
commit 777715a56f

View File

@ -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());