Now Edit > Clear on tilemaps can shrink/trim the tilemap

This commit is contained in:
David Capello 2020-10-15 16:04:55 -03:00
parent 0effbacd11
commit a255213636

View File

@ -331,10 +331,7 @@ void Clipboard::clearMaskFromCels(Tx& tx,
// Get cel again just in case the cmd::ClearMask() called cmd::ClearCel()
cel = doc::get<Cel>(celId);
if (cel &&
cel->layer()->isTransparent() &&
// Don't shrink tilemaps automatically
!cel->layer()->isTilemap()) {
if (cel && cel->layer()->isTransparent()) {
tx(new cmd::TrimCel(cel));
}
}