Commit f5acc11c by Jonathan Thomas

Only add Caption effect when needed

parent 99176a92
...@@ -154,11 +154,13 @@ export default { ...@@ -154,11 +154,13 @@ export default {
caption.caption_text += `${start_timestamp} --> ${end_timestamp}\n${clip.json.text}\n\n` caption.caption_text += `${start_timestamp} --> ${end_timestamp}\n${clip.json.text}\n\n`
} }
} }
// Save caption effect // Save caption effect (if any text is needed)
if (is_effect_new) { if (effect_payload.end > 0) {
await this.createEffect(effect_payload) if (is_effect_new) {
} else { await this.createEffect(effect_payload)
await this.updateEffect(effect_payload) } else {
await this.updateEffect(effect_payload)
}
} }
// Create export // 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