diff options
Diffstat (limited to 'src/sequencer.c')
-rw-r--r-- | src/sequencer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sequencer.c b/src/sequencer.c index 3bd214f..27874f5 100644 --- a/src/sequencer.c +++ b/src/sequencer.c | |||
@@ -1,7 +1,5 @@ | |||
1 | #include "rng.c" | 1 | #include "rng.c" |
2 | #include "text.h" | 2 | #include "text.h" |
3 | #include "assets.c" | ||
4 | #include "patterns.c" | ||
5 | #include "save.c" | 3 | #include "save.c" |
6 | #include "drawing.c" | 4 | #include "drawing.c" |
7 | #include "clipboard.c" | 5 | #include "clipboard.c" |
@@ -1459,6 +1457,7 @@ handle_trigger_selection(void) { | |||
1459 | redraw_channels = true; | 1457 | redraw_channels = true; |
1460 | redraw_pattern_buttons = true; | 1458 | redraw_pattern_buttons = true; |
1461 | } else { | 1459 | } else { |
1460 | if (trig->active && !patterns[pattern_selection_loc].empty) { | ||
1462 | // Switch to parameter selection. | 1461 | // Switch to parameter selection. |
1463 | switch (channel_selection_loc) { | 1462 | switch (channel_selection_loc) { |
1464 | case 0: { input_handler = handle_param_selection_sq1; } break; | 1463 | case 0: { input_handler = handle_param_selection_sq1; } break; |
@@ -1466,6 +1465,7 @@ handle_trigger_selection(void) { | |||
1466 | case 2: { input_handler = handle_param_selection_wave; } break; | 1465 | case 2: { input_handler = handle_param_selection_wave; } break; |
1467 | case 3: { input_handler = handle_param_selection_noise; } break; | 1466 | case 3: { input_handler = handle_param_selection_noise; } break; |
1468 | } | 1467 | } |
1468 | } | ||
1469 | redraw_params = true; | 1469 | redraw_params = true; |
1470 | } | 1470 | } |
1471 | } | 1471 | } |