Updated gui mscript lib to use .meta instead of .light when preparing an mscript sequence.

This commit is contained in:
mmcwilliams 2019-07-26 19:59:16 -04:00
parent 96d0897f65
commit 7c50b66499
1 changed files with 4 additions and 4 deletions

View File

@ -77,8 +77,8 @@ mse.mscript.toGUI = function () {
c = mse.mscript.data.arr[x]; c = mse.mscript.data.arr[x];
seq.set(x, c); seq.set(x, c);
if (c === 'CF' || c === 'CB') { if (c === 'CF' || c === 'CB') {
if (typeof mse.mscript.data.light[x] !== 'undefined' && mse.mscript.data.light[x] !== '') { if (typeof mse.mscript.data.meta[x] !== 'undefined' && mse.mscript.data.meta[x] !== '') {
seq.setLight(x, mse.mscript.data.light[x]); seq.setLight(x, mse.mscript.data.meta[x]);
} else { } else {
seq.setLight(x, light.color); seq.setLight(x, light.color);
} }
@ -126,8 +126,8 @@ mse.mscript.prepare = function () {
obj = { obj = {
cmd : mse.mscript.data.arr[i] cmd : mse.mscript.data.arr[i]
}; };
if (typeof mse.mscript.data.light[i] !== 'undefined' && mse.mscript.data.light[i] !== '') { if (typeof mse.mscript.data.meta[i] !== 'undefined' && mse.mscript.data.meta[i] !== '') {
obj.light = mse.mscript.data.light[i]; obj.light = mse.mscript.data.meta[i];
} else { } else {
obj.light = light.color.join(','); obj.light = light.color.join(',');
} }