add mirroring, exclude normals from bounds, fix paint selection update
This commit is contained in:
parent
e682881374
commit
5d2f4ac02e
7 changed files with 88 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue