update widget outline when rotated or scaled
This commit is contained in:
parent
3a637343fb
commit
fdc61bd09a
1 changed files with 6 additions and 0 deletions
|
|
@ -545,6 +545,9 @@ class Widget {
|
|||
this.setWireframe(false);
|
||||
this.clearSlices();
|
||||
mesh.geometry.applyMatrix4(new THREE.Matrix4().makeScale(x, y, z));
|
||||
if (this.outline) {
|
||||
this.setEdges(true);
|
||||
}
|
||||
scale.x *= (x || 1.0);
|
||||
scale.y *= (y || 1.0);
|
||||
scale.z *= (z || 1.0);
|
||||
|
|
@ -558,6 +561,9 @@ class Widget {
|
|||
if (center) {
|
||||
this.center(false);
|
||||
}
|
||||
if (this.outline) {
|
||||
this.setEdges(true);
|
||||
}
|
||||
if ((x || y || z) && api && api.event) {
|
||||
api.event.emit('widget.rotate', {widget: this, x, y, z});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue