mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #414: part 9: persist layer opacity when resizing
This commit is contained in:
parent
add97baf54
commit
99b00bc57f
@ -71,8 +71,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ns.ResizeController.prototype.resizeLayer_ = function (layer) {
|
ns.ResizeController.prototype.resizeLayer_ = function (layer) {
|
||||||
|
var opacity = layer.getOpacity();
|
||||||
var resizedFrames = layer.getFrames().map(this.resizeFrame_.bind(this));
|
var resizedFrames = layer.getFrames().map(this.resizeFrame_.bind(this));
|
||||||
return pskl.model.Layer.fromFrames(layer.getName(), resizedFrames);
|
var resizedLayer = pskl.model.Layer.fromFrames(layer.getName(), resizedFrames);
|
||||||
|
resizedLayer.setOpacity(opacity);
|
||||||
|
return resizedLayer;
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.ResizeController.prototype.onResizeContentChange_ = function (evt) {
|
ns.ResizeController.prototype.onResizeContentChange_ = function (evt) {
|
||||||
|
Loading…
Reference in New Issue
Block a user