fallback if preset is missing

This commit is contained in:
j 2018-12-07 22:01:24 +01:00
parent 9bf1dfd6e9
commit f57dfcfaf7

View File

@ -504,7 +504,11 @@ function exportSequenceCSV() {
var r = [];
r.push(row.preset)
var preset = getPreset(row.preset)
r.push(preset.name)
if (preset) {
r.push(preset.name)
} else {
r.push(row.preset)
}
if (row.duration) {
position += row.duration
r.push(formatDuration(position))
@ -515,9 +519,15 @@ function exportSequenceCSV() {
}
r.push(row.speed)
r.push(row.sleep)
r.push(preset.position.elevation)
r.push(preset.position.azimuth)
r.push(preset.position.absoluteZoom)
if (preset) {
r.push(preset.position.elevation)
r.push(preset.position.azimuth)
r.push(preset.position.absoluteZoom)
} else {
r.push('')
r.push('')
r.push('')
}
return r.join(',');
})).join('\n');
}