mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
fixed bug where deleting first frame was failing
This commit is contained in:
parent
3b70ce1c17
commit
2430e8f2ab
@ -183,7 +183,8 @@ $.namespace("pskl");
|
|||||||
|
|
||||||
removeFrame: function(frameIndex) {
|
removeFrame: function(frameIndex) {
|
||||||
frameSheet.removeFrameByIndex(frameIndex);
|
frameSheet.removeFrameByIndex(frameIndex);
|
||||||
this.setActiveFrameAndRedraw(frameIndex - 1);
|
var activeFrameIndex = frameIndex ? frameIndex - 1 : 0;
|
||||||
|
this.setActiveFrameAndRedraw(activeFrameIndex);
|
||||||
},
|
},
|
||||||
|
|
||||||
duplicateFrame: function(frameIndex) {
|
duplicateFrame: function(frameIndex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user