Use mutable set for animation names
See https://youtrack.jetbrains.com/issue/KT-9959 Fixes #34 (again)
This commit is contained in:
parent
7a70ab32c9
commit
1784458931
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue