Finalized first implementation of Circle tool

This commit is contained in:
juliandescottes
2012-09-14 23:43:49 +02:00
parent f7d235b116
commit 2edda09f08
5 changed files with 51 additions and 22 deletions

View File

@ -96,6 +96,14 @@
throw "Out of bound index for frameSheet object.";
}
this.frames.splice(index, 1);
// Current frame index might not be valid anymore
if (!this.hasFrameAtIndex(this.currentFrameIndex)) {
// if not select last frame available
this.setCurrentFrameIndex(this.getFrameCount() - 1);
}
$.publish(Events.FRAMESHEET_RESET);
};
ns.FrameSheet.prototype.duplicateFrameByIndex = function(index) {