fix object not reinitializing when manually changing pattrstorage

attribute
This commit is contained in:
2026-08-11 18:52:16 +02:00
parent 7721cd7322
commit f537e3a583

View File

@@ -229,7 +229,7 @@ slot.local = 1;
function loadbang() {
// If running in a M4L device, for some reason loadbang needs to be delayed in order to properly get presets stored in Live set
// So we prevent do_loadbang from happening from here, and we rely on init_tsk instead.
// So we bypass the initial loadbang, and we rely on init_tsk instead
if (max.isplugin) return;
do_loadbang();
}
@@ -2152,6 +2152,9 @@ function setpattrstorage(v){
} else {
pattrstorage_name = arrayfromargs(arguments)[0];
}
if (has_loaded) {
do_loadbang();
}
}
setpattrstorage.local = 1;