fix js error when resizing piskel (missing fps arg)

This commit is contained in:
juliandescottes 2016-12-16 07:02:31 +01:00
parent 27b26fe4f3
commit 49109e51c9

View File

@ -64,7 +64,8 @@
var resizedLayers = this.piskelController.getLayers().map(this.resizeLayer_.bind(this)); var resizedLayers = this.piskelController.getLayers().map(this.resizeLayer_.bind(this));
var currentPiskel = this.piskelController.getPiskel(); var currentPiskel = this.piskelController.getPiskel();
var piskel = pskl.model.Piskel.fromLayers(resizedLayers, currentPiskel.getDescriptor()); var fps = this.piskelController.getFPS();
var piskel = pskl.model.Piskel.fromLayers(resizedLayers, fps, currentPiskel.getDescriptor());
// propagate savepath to new Piskel // propagate savepath to new Piskel
piskel.savePath = currentPiskel.savePath; piskel.savePath = currentPiskel.savePath;