mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Make merged layer take name of lower layer
Most of the time when merging layers, you'll want to keep the name of the Bottom layer. This saves users the trouble of having to rename the layer.
This commit is contained in:
parent
21b8bdd0f3
commit
72e8d74957
@ -17,7 +17,7 @@
|
|||||||
var otherFrame = framesB[index];
|
var otherFrame = framesB[index];
|
||||||
mergedFrames.push(pskl.utils.FrameUtils.merge([otherFrame, frame]));
|
mergedFrames.push(pskl.utils.FrameUtils.merge([otherFrame, frame]));
|
||||||
});
|
});
|
||||||
var mergedLayer = pskl.model.Layer.fromFrames(layerA.getName(), mergedFrames);
|
var mergedLayer = pskl.model.Layer.fromFrames(layerB.getName(), mergedFrames);
|
||||||
return mergedLayer;
|
return mergedLayer;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user