start mesh api. add function wrapper for array arguments unroll
This commit is contained in:
parent
c8b4dda031
commit
a1644ed609
6 changed files with 83 additions and 7 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue