mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 12:17:54 -06:00
Merge branch 'tm_sla_supports_backend'
This commit is contained in:
commit
38733ff56a
4 changed files with 55 additions and 37 deletions
|
@ -1746,6 +1746,9 @@ void Plater::priv::sla_optimize_rotation() {
|
|||
if(rotoptimizing.load()) // wasn't canceled
|
||||
for(ModelInstance * oi : o->instances) oi->set_rotation({r[X], r[Y], r[Z]});
|
||||
|
||||
// Correct the z offset of the object which was corrupted be the rotation
|
||||
o->ensure_on_bed();
|
||||
|
||||
stfn(0, L("Orientation found."));
|
||||
statusbar()->set_range(prev_range);
|
||||
statusbar()->set_cancel_callback();
|
||||
|
|
|
@ -75,7 +75,11 @@ void ProgressStatusBar::set_progress(int val)
|
|||
if(val == m_prog->GetRange()) {
|
||||
m_prog->SetValue(0);
|
||||
show_progress(false);
|
||||
} else {
|
||||
}
|
||||
else if(val < 0) {
|
||||
m_prog->Pulse();
|
||||
}
|
||||
else {
|
||||
m_prog->SetValue(val);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue