Yet another history bug !

This commit is contained in:
jdescottes 2014-07-14 00:37:17 +02:00
parent 829bcb8ad1
commit dc78c3cecd
2 changed files with 4 additions and 5 deletions

View File

@ -103,6 +103,10 @@
ns.SelectionManager.prototype.pastePixels = function(pixels) {
var currentFrame = this.piskelController.getCurrentFrame();
pixels.forEach(function (pixel) {
currentFrame.setPixel(pixel.col,pixel.row,pixel.color);
});
$.publish(Events.PISKEL_SAVE_STATE, {
type : pskl.service.HistoryService.REPLAY,
scope : this,
@ -111,10 +115,6 @@
pixels : JSON.parse(JSON.stringify(pixels.slice(0)))
}
});
pixels.forEach(function (pixel) {
currentFrame.setPixel(pixel.col,pixel.row,pixel.color);
});
};
ns.SelectionManager.prototype.replay = function (frame, replayData) {

View File

@ -8,7 +8,6 @@
"js/Constants.js",
"js/Events.js",
// Libraries
"js/utils/core.js",
"js/utils/UserAgent.js",