mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Add extra empty frames if it's necessary on a copy-paste operation of layers between different sprites
This commit is contained in:
parent
38e67dbbb6
commit
d9c155a0cd
@ -372,8 +372,8 @@ void clipboard::paste()
|
||||
if (lastCel && maxFrame < lastCel->frame())
|
||||
maxFrame = lastCel->frame();
|
||||
}
|
||||
if (dstSpr->totalFrames() < maxFrame+1)
|
||||
api.setTotalFrames(dstSpr, maxFrame+1);
|
||||
while (dstSpr->totalFrames() < maxFrame+1)
|
||||
api.addEmptyFrame(dstSpr, dstSpr->totalFrames());
|
||||
|
||||
for (LayerIndex i = srcRange.layerBegin(); i <= srcRange.layerEnd(); ++i) {
|
||||
LayerImage* newLayer = new LayerImage(dstSpr);
|
||||
|
Loading…
Reference in New Issue
Block a user