fix object not reinitializing when manually changing pattrstorage
attribute
This commit is contained in:
@@ -229,7 +229,7 @@ slot.local = 1;
|
|||||||
|
|
||||||
function loadbang() {
|
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
|
// 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;
|
if (max.isplugin) return;
|
||||||
do_loadbang();
|
do_loadbang();
|
||||||
}
|
}
|
||||||
@@ -2152,6 +2152,9 @@ function setpattrstorage(v){
|
|||||||
} else {
|
} else {
|
||||||
pattrstorage_name = arrayfromargs(arguments)[0];
|
pattrstorage_name = arrayfromargs(arguments)[0];
|
||||||
}
|
}
|
||||||
|
if (has_loaded) {
|
||||||
|
do_loadbang();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setpattrstorage.local = 1;
|
setpattrstorage.local = 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user