refactor worker with cleaner object function bindings

This commit is contained in:
Stewart Allen 2022-01-02 14:25:28 -05:00
commit eb2fbf2a09
8 changed files with 168 additions and 59 deletions

View file

@ -221,7 +221,7 @@ let api = mesh.api = {
model,
objects() {
// return models, not groups
// return model objects suitable for finding ray intersections
return group.list().map(o => o.models).flat().map(o => o.object());
}
};