add mirroring, exclude normals from bounds, fix paint selection update

This commit is contained in:
Stewart Allen 2022-01-20 00:01:48 -05:00
commit 5d2f4ac02e
7 changed files with 88 additions and 7 deletions

View file

@ -108,6 +108,13 @@ mesh.group = class MeshGroup extends mesh.object {
return this.centerXY().floor();
}
scale(x = 1, y = 1, z = 1) {
for (let m of this.models) {
m.scale(x, y, z);
}
return this;
}
// center objects to group bounds
// dependent on first being added to world/scene
centerModels() {
@ -141,6 +148,11 @@ mesh.group = class MeshGroup extends mesh.object {
model.select(...arguments);
}
}
// ok, this is confusing, but necessary for now :/
setSelected() {
super.select();
}
};
})();