convert preview path to async function. remove shared array from animation direct list
This commit is contained in:
parent
d4e867fd2d
commit
e970d377b2
7 changed files with 26 additions and 22 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue