a small cleanup

This commit is contained in:
tamasmeszaros 2018-11-15 10:47:20 +01:00
parent 95abba5b96
commit 88648c8214
2 changed files with 31 additions and 13 deletions

View file

@ -1875,21 +1875,13 @@ void Plater::priv::on_process_completed(wxCommandEvent &evt)
case ptSLA:
// Update the SLAPrint from the current Model, so that the reload_scene()
// pulls the correct data.
// FIXME: SLAPrint::apply is not ready for this. At this stage it would
// invalidate the previous result and the supports would not be available
// for rendering.
// if (this->update_background_process() & UPDATE_BACKGROUND_PROCESS_RESTART)
// this->schedule_background_process();
{
// for(SLAPrintObject * po: sla_print.objects()) {
// TriangleMesh&& suppmesh = po->support_mesh();
// if(suppmesh.facets_count() > 0) {
// ModelObject* mo = model.add_object();
// for(const SLAPrintObject::Instance& inst : po->instances() ) {
// mo->add_instance(*(mo->instances[inst.instance_id.id]));
// mo->add_volume(suppmesh);
// }
// }
// }
}
_3DScene::reload_scene(canvas3D, true);
break;
}