fallback if preset is missing
This commit is contained in:
parent
9bf1dfd6e9
commit
f57dfcfaf7
|
@ -504,7 +504,11 @@ function exportSequenceCSV() {
|
|||
var r = [];
|
||||
r.push(row.preset)
|
||||
var preset = getPreset(row.preset)
|
||||
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)
|
||||
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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user