From 76ad31163fcd78a05dc0e1ac1925773e549ec7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Clet?= Date: Wed, 18 Dec 2024 15:15:01 +0100 Subject: [PATCH] fix issue when resyncing with out-of-grid new presets --- code/tc.preset.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/code/tc.preset.js b/code/tc.preset.js index aaf84cf..1bf42ad 100644 --- a/code/tc.preset.js +++ b/code/tc.preset.js @@ -205,13 +205,6 @@ function calc_rows_columns() { slots[cur] = new slot(left, top, right, bottom, prev_state.name, prev_state.lock, prev_state.interp, prev_state.color_index, prev_state.color_custom); } } - - if (slots_count_display < slots_highest) { - for (var i = slots_count_display + 1; i <= slots_highest; i++) { - slots[i] = new slot(); - slots[i].init(); - } - } paint_base(); } calc_rows_columns.local = 1; @@ -973,6 +966,11 @@ function read() { } } +// Given that v8ui has a new read method that cannot be overriden, we need to use [substitute read readfile] between [pattrstorage] and [tc.prest] +function readfile(f, s) { + read(f, s); +} + function subscriptionlist() { var client = arrayfromargs(arguments)[0]; if (is_listening_to_subscriptionlist) {