Add sprite name incrementing and reserved naming

This commit is contained in:
Paul Kaplan 2017-03-20 12:52:57 -04:00
parent 052ecef91c
commit 8bbb395b35
3 changed files with 46 additions and 4 deletions
test/integration

View file

@ -26,7 +26,7 @@ test('complex', function (t) {
var targets = data.targetList;
for (var i in targets) {
if (targets[i].isStage === true) continue;
if (targets[i].name === 'test') continue;
if (targets[i].name.match(/test/)) continue;
vm.setEditingTarget(targets[i].id);
vm.renameSprite(targets[i].id, 'test');