mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +00:00
Fix bug copying/moving cels with z-index (fix #4779)
This commit is contained in:
parent
21e8e01951
commit
1ec76afeaf
@ -90,6 +90,13 @@ DocApi::HandleLinkedCels::HandleLinkedCels(
|
||||
new cmd::CopyCel(
|
||||
dstRelated->layer(), dstRelated->frame(),
|
||||
dstLayer, dstFrame, true));
|
||||
|
||||
// Copy data that belongs to the original Cel itself (no the
|
||||
// shared CelData) like the z-index.
|
||||
if (Cel* dstCel = dstLayer->cel(dstFrame)) {
|
||||
dstCel->setZIndex(srcCel->zIndex());
|
||||
}
|
||||
|
||||
m_created = true;
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user