start mesh api. add function wrapper for array arguments unroll

This commit is contained in:
Stewart Allen 2021-12-29 21:52:24 -05:00
commit a1644ed609
6 changed files with 83 additions and 7 deletions

View file

@ -954,6 +954,19 @@
active: updateLastAction
},
// wraps WORLD add/remove with immediate refresh
model: {
add: mesh => {
WORLD.add(mesh);
refresh();
},
remove: (mesh) => {
WORLD.remove(mesh);
refresh();
}
},
world: WORLD,
platform: {