fix import centering. add model/group position info

This commit is contained in:
Stewart Allen 2022-01-05 17:58:37 -05:00
commit 8f02e19330
7 changed files with 121 additions and 50 deletions

View file

@ -35,11 +35,11 @@ mesh.group = class MeshGroup extends mesh.object {
}
}
type() {
get type() {
return "group";
}
object() {
get object() {
return this.group;
}
@ -92,7 +92,7 @@ mesh.group = class MeshGroup extends mesh.object {
// center objects to group bounds
// dependent on first being added to world/scene
centerModels() {
let bounds = this.bounds();
let bounds = this.bounds;
for (let model of this.models) {
model.center(bounds);
}