mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-22 06:41:08 +00:00
Now Edit > Clear on tilemaps can shrink/trim the tilemap
This commit is contained in:
parent
0effbacd11
commit
a255213636
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user