Fix compilation - missing include for boost string conv,

set supports flags for object AFTER the dialog window and snapshot
This commit is contained in:
PavelMikus 2022-09-09 15:34:48 +02:00
parent bee57e46d4
commit 670629d883
2 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,7 @@
#include "libslic3r/format.hpp"
#include "GCodeProcessor.hpp"
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/log/trivial.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/split.hpp>

View File

@ -503,9 +503,6 @@ void GLGizmoFdmSupports::auto_generate()
return vol->type() != ModelVolumeType::MODEL_PART || vol->supported_facets.empty();
});
mo->config.set("support_material", true);
mo->config.set("support_material_auto", false);
MessageDialog dlg(GUI::wxGetApp().plater(),
_L("Autogeneration will erase all currently painted areas.") + "\n\n" +
_L("Are you sure you want to do it?") + "\n",
@ -523,6 +520,8 @@ void GLGizmoFdmSupports::auto_generate()
}
}
mo->config.set("support_material", true);
mo->config.set("support_material_auto", false);
this->waiting_for_autogenerated_supports = true;
wxGetApp().CallAfter([this]() { reslice_FDM_supports(); });
}