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

@ -26,7 +26,7 @@ let materials = mesh.material = {
side: THREE.DoubleSide,
transparent: true,
shininess: 100,
specular: 0x181818,
specular: 0x202020,
color: 0xffff00,
opacity: 1
}),
@ -34,7 +34,7 @@ let materials = mesh.material = {
side: THREE.DoubleSide,
transparent: true,
shininess: 100,
specular: 0x181818,
specular: 0x202020,
color: 0x00ff00,
opacity: 1
}),
@ -68,11 +68,11 @@ mesh.model = class MeshModel extends mesh.object {
mapp.db.space.put(this.id, { file, mesh });
}
type() {
get type() {
return "model";
}
object() {
get object() {
return this.mesh;
}