fixes #429 outline refresh and stock size issues
This commit is contained in:
parent
bcadc9dfb9
commit
9138e219ea
2 changed files with 10 additions and 3 deletions
|
|
@ -360,6 +360,10 @@ class Widget {
|
|||
this.setOpacity(opacity ?? 1);
|
||||
}
|
||||
|
||||
refreshVisualState() {
|
||||
this.setVisualState(this.getVisualState());
|
||||
}
|
||||
|
||||
restoreVisualState() {
|
||||
if (this.cache.vizstate) {
|
||||
this.setVisualState(this.cache.vizstate);
|
||||
|
|
@ -613,6 +617,7 @@ class Widget {
|
|||
this.roto = [];
|
||||
this.center();
|
||||
this.setModified();
|
||||
this.refreshVisualState();
|
||||
}
|
||||
|
||||
mirror() {
|
||||
|
|
|
|||
|
|
@ -132,15 +132,17 @@ export async function cam_slice(settings, widget, onupdate, ondone) {
|
|||
}
|
||||
|
||||
if (stock.x && stock.y && stock.z && !isIndexed) {
|
||||
if (stock.x + 0.00001 < bounds.max.x - bounds.min.x) {
|
||||
let maxDelta = 1e-3;
|
||||
|
||||
if (stock.x + maxDelta < (bounds.max.x - bounds.min.x)) {
|
||||
return error('stock X too small for part. resize stock or use offset stock');
|
||||
}
|
||||
|
||||
if (stock.y + 0.00001 < bounds.max.y - bounds.min.y) {
|
||||
if (stock.y + maxDelta < (bounds.max.y - bounds.min.y)) {
|
||||
return error('stock Y too small for part. resize stock or use offset stock');
|
||||
}
|
||||
|
||||
if (stock.z + 0.00001 < bounds.max.z - bounds.min.z) {
|
||||
if (stock.z + maxDelta < (bounds.max.z - bounds.min.z)) {
|
||||
return error('stock Z too small for part. resize stock or use offset stock');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue