Commit f5acc11c by Jonathan Thomas

Only add Caption effect when needed

parent 99176a92
......@@ -154,11 +154,13 @@ export default {
caption.caption_text += `${start_timestamp} --> ${end_timestamp}\n${clip.json.text}\n\n`
}
}
// Save caption effect
if (is_effect_new) {
await this.createEffect(effect_payload)
} else {
await this.updateEffect(effect_payload)
// Save caption effect (if any text is needed)
if (effect_payload.end > 0) {
if (is_effect_new) {
await this.createEffect(effect_payload)
} else {
await this.updateEffect(effect_payload)
}
}
// Create export
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment