mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 10:20:48 +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,
|
opacity,
|
||||||
src_layer->blendMode());
|
src_layer->blendMode());
|
||||||
|
|
||||||
tx(new cmd::SetCelPosition(dst_cel,
|
// First unlink the dst_cel
|
||||||
bounds.x, bounds.y));
|
|
||||||
|
|
||||||
if (dst_cel->links())
|
if (dst_cel->links())
|
||||||
tx(new cmd::UnlinkCel(dst_cel));
|
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,
|
tx(new cmd::ReplaceImage(sprite,
|
||||||
dst_cel->imageRef(), new_image));
|
dst_cel->imageRef(), new_image));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user