refactor worker with cleaner object function bindings
This commit is contained in:
parent
b4966bbb6f
commit
eb2fbf2a09
8 changed files with 168 additions and 59 deletions
|
|
@ -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());
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue