mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 10:21:04 +00:00
Fix duplicate Sprite or Layer don't duplicate z-indexes (fix #4665)
Prior this fix, duplicating linked cels with different z-order created linked cels with the same z-order in all linked set.
This commit is contained in:
parent
b6f7cba09f
commit
21e8e01951
@ -528,6 +528,7 @@ void Doc::copyLayerContent(const Layer* sourceLayer0, Doc* destDoc, Layer* destL
|
||||
if (it != linked.end()) {
|
||||
newCel.reset(Cel::MakeLink(sourceCel->frame(),
|
||||
it->second));
|
||||
newCel->setZIndex(sourceCel->zIndex());
|
||||
}
|
||||
else {
|
||||
newCel.reset(create_cel_copy(nullptr, // TODO add undo information?
|
||||
|
Loading…
x
Reference in New Issue
Block a user