mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Yet another history bug !
This commit is contained in:
parent
829bcb8ad1
commit
dc78c3cecd
@ -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) {
|
||||
|
@ -8,7 +8,6 @@
|
||||
"js/Constants.js",
|
||||
"js/Events.js",
|
||||
|
||||
|
||||
// Libraries
|
||||
"js/utils/core.js",
|
||||
"js/utils/UserAgent.js",
|
||||
|
Loading…
Reference in New Issue
Block a user