mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #315 : avoid saving state when replaying state
This commit is contained in:
@ -8,7 +8,15 @@
|
||||
ns.AbstractTransformTool.prototype.apply = function (evt) {
|
||||
var allFrames = evt.shiftKey;
|
||||
var allLayers = evt.ctrlKey;
|
||||
|
||||
this.applyTool_(evt.altKey, allFrames, allLayers);
|
||||
|
||||
$.publish(Events.PISKEL_RESET);
|
||||
this.raiseSaveStateEvent_({
|
||||
altKey : evt.altKey,
|
||||
allFrames : allFrames,
|
||||
allLayers : allLayers
|
||||
});
|
||||
};
|
||||
|
||||
ns.AbstractTransformTool.prototype.applyTool_ = function (altKey, allFrames, allLayers) {
|
||||
@ -20,13 +28,6 @@
|
||||
this.applyToolOnFrame_(frame, altKey);
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
|
||||
$.publish(Events.PISKEL_RESET);
|
||||
this.raiseSaveStateEvent_({
|
||||
altKey : altKey,
|
||||
allFrames : allFrames,
|
||||
allLayers : allLayers
|
||||
});
|
||||
};
|
||||
|
||||
ns.AbstractTransformTool.prototype.raiseSaveStateEvent_ = function (replayData) {
|
||||
|
@ -17,7 +17,5 @@
|
||||
frame.setPixels(ref.getPixels());
|
||||
}
|
||||
});
|
||||
$.publish(Events.PISKEL_RESET);
|
||||
this.raiseSaveStateEvent_({});
|
||||
};
|
||||
})();
|
||||
|
Reference in New Issue
Block a user