Added cancellation to Lightning infill.

This commit is contained in:
Lukáš Hejl 2022-05-12 09:49:07 +02:00
parent e82ef1094b
commit bff32c9cdb
7 changed files with 25 additions and 18 deletions

View file

@ -21,9 +21,9 @@ void GeneratorDeleter::operator()(Generator *p) {
delete p;
}
GeneratorPtr build_generator(const PrintObject &print_object)
GeneratorPtr build_generator(const PrintObject &print_object, const std::function<void()> &throw_on_cancel_callback)
{
return GeneratorPtr(new Generator(print_object));
return GeneratorPtr(new Generator(print_object, throw_on_cancel_callback));
}
} // namespace Slic3r::FillAdaptive