Fix wrong data type
This commit is contained in:
parent
8e6760e033
commit
423d1f2f40
@ -434,7 +434,7 @@ void PrintObject::generate_support_material()
|
|||||||
|
|
||||||
void PrintObject::prepare_adaptive_infill_data()
|
void PrintObject::prepare_adaptive_infill_data()
|
||||||
{
|
{
|
||||||
const ConfigOptionFloatOrPercent* opt_fill_density = this->print()->full_print_config().option<ConfigOptionFloatOrPercent>("fill_density");
|
const ConfigOptionPercent* opt_fill_density = this->print()->full_print_config().option<ConfigOptionPercent>("fill_density");
|
||||||
const ConfigOptionFloatOrPercent* opt_infill_extrusion_width = this->print()->full_print_config().option<ConfigOptionFloatOrPercent>("infill_extrusion_width");
|
const ConfigOptionFloatOrPercent* opt_infill_extrusion_width = this->print()->full_print_config().option<ConfigOptionFloatOrPercent>("infill_extrusion_width");
|
||||||
|
|
||||||
if(opt_fill_density == nullptr || opt_infill_extrusion_width == nullptr || opt_fill_density->value <= 0 || opt_infill_extrusion_width->value <= 0)
|
if(opt_fill_density == nullptr || opt_infill_extrusion_width == nullptr || opt_fill_density->value <= 0 || opt_infill_extrusion_width->value <= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user