diff --git a/extras/rhubarb-for-spine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/AnimationFileModel.kt b/extras/rhubarb-for-spine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/AnimationFileModel.kt index 14a6df3..3a1f610 100644 --- a/extras/rhubarb-for-spine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/AnimationFileModel.kt +++ b/extras/rhubarb-for-spine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/AnimationFileModel.kt @@ -50,10 +50,10 @@ class AnimationFileModel(animationFilePath: Path) { var mouthShapesError by mouthShapesErrorProperty private set + private val executor = Executors.newSingleThreadExecutor() val audioFileModelsProperty = SimpleListProperty( spineJson.audioEvents .map { event -> - val executor = Executors.newSingleThreadExecutor() AudioFileModel(event, this, executor, { result -> saveAnimation(result, event.name) }) } .observable()