mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-26 08:37:08 +00:00
Fix merging down linked layers (https://community.aseprite.org/t/2894)
This commit is contained in:
parent
ebca165b2a
commit
11c8ba3605
@ -137,12 +137,14 @@ void MergeDownLayerCommand::onExecute(Context* context)
|
||||
opacity,
|
||||
src_layer->blendMode());
|
||||
|
||||
tx(new cmd::SetCelPosition(dst_cel,
|
||||
bounds.x, bounds.y));
|
||||
|
||||
// First unlink the dst_cel
|
||||
if (dst_cel->links())
|
||||
tx(new cmd::UnlinkCel(dst_cel));
|
||||
|
||||
// Then modify the dst_cel
|
||||
tx(new cmd::SetCelPosition(dst_cel,
|
||||
bounds.x, bounds.y));
|
||||
|
||||
tx(new cmd::ReplaceImage(sprite,
|
||||
dst_cel->imageRef(), new_image));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user