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