mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Don't create an empty cmd::CopyRegion()
This might happen when we double-click some tiles outside the tilemap region.
This commit is contained in:
parent
000e22f4d5
commit
736e119440
@ -498,7 +498,7 @@ void modify_tilemap_cel_region(
|
||||
cmds->executeAndAdd(
|
||||
new cmd::ReplaceImage(cel->sprite(), cel->imageRef(), newTilemap));
|
||||
}
|
||||
else {
|
||||
else if (!tilePtsRgn.isEmpty()) {
|
||||
cmds->executeAndAdd(
|
||||
new cmd::CopyRegion(
|
||||
cel->image(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user