Issue #414: part 9: persist layer opacity when resizing

This commit is contained in:
jdescottes 2016-03-20 20:37:33 +01:00 committed by juliandescottes
parent add97baf54
commit 99b00bc57f

View File

@ -71,8 +71,11 @@
};
ns.ResizeController.prototype.resizeLayer_ = function (layer) {
var opacity = layer.getOpacity();
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) {