Use mutable set for animation names

See https://youtrack.jetbrains.com/issue/KT-9959

Fixes #34 (again)
This commit is contained in:
Daniel Wolf 2018-04-10 22:30:17 +02:00
parent 7a70ab32c9
commit 1784458931
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Version history
## Unreleased
* Fixed bug in Rhubarb for Spine where processing failed depending on the number of existing animations. See [issue #34](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/34#issuecomment-378198776).
## Version 1.7.1
* Fixed [issue #34](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/34): Generic error message in Rhubarb for Spine

View File

@ -96,7 +96,7 @@ class SpineJson(val filePath: Path) {
}
val animationNames = observableSet<String>(
json.obj("animations")?.map{ it.key }?.toSet() ?: setOf()
json.obj("animations")?.map{ it.key }?.toMutableSet() ?: mutableSetOf()
)
fun createOrUpdateAnimation(mouthCues: List<MouthCue>, eventName: String, animationName: String,