diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-11 14:37:02 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-11 14:37:02 +0100 |
| commit | 28eda92b20df45e5bcc0ce9d5cac7656ddc55dd9 (patch) | |
| tree | d34c9eca6ae1a0be34c688c34b194f676026f799 /app/client/live/live.reducer.js | |
| parent | 2acf5e787edb70bb4737492a360315b3fc036b54 (diff) | |
ui updates
Diffstat (limited to 'app/client/live/live.reducer.js')
| -rw-r--r-- | app/client/live/live.reducer.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/client/live/live.reducer.js b/app/client/live/live.reducer.js index 2abb527..1d437e0 100644 --- a/app/client/live/live.reducer.js +++ b/app/client/live/live.reducer.js @@ -10,6 +10,7 @@ const liveInitialState = { sequence_playing: true, sequence_step: 1, recurse_roll: 0, rotate: 0, scale: 0, process_frac: 0.5, view_mode: 'b', + encoding_stored_mix_n: 0, }, all_checkpoints: [], checkpoints: [], @@ -115,7 +116,12 @@ const liveReducer = (state = liveInitialState, action) => { const new_opt = action.data.data.trim().split('\n').reduce((a,b) => { if (b.indexOf('set_opt') === 0) { const terms = b.split(' ') - a[terms[1]] = terms[2] + let key = terms[1] + let value = parseFloat(terms[2]) + if (isNaN(value)) { + value = terms[2] + } + a[key] = value } return a }, {}) |
