convert preview path to async function. remove shared array from animation direct list

This commit is contained in:
Stewart Allen 2022-10-16 01:06:39 -04:00
commit e970d377b2
7 changed files with 26 additions and 22 deletions

View file

@ -304,7 +304,7 @@ kiri.load(() => {
center = Object.assign({}, stock.center);
center.z -= stock.z / 2;
send.data({ mesh_add: { id: 0, ind, offset, sab } }, [ sab ]);
send.data({ mesh_add: { id: 0, ind, offset, sab } }, [ ]); // sab not transferrable
send.data({ mesh_move: { id: 0, pos: center } });
send.done();
};

View file

@ -26,7 +26,7 @@ const POLY = polygons;
* @param {Number} [index] into widget array
* @param {Object} [firstPoint] starting point
*/
CAM.prepare = function(widgets, settings, update) {
CAM.prepare = async function(widgets, settings, update) {
widgets = widgets.filter(w => !w.track.ignore && !w.meta.disabled);
const count = widgets.length;