mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-31 16:08:43 +03:00
Exclude_area
This commit is contained in:
@@ -1829,9 +1829,8 @@ PageBedShape::PageBedShape(ConfigWizard *parent)
|
||||
append_text(_L("Set the shape of your printer's bed."));
|
||||
|
||||
shape_panel->build_panel(*wizard_p()->custom_config->option<ConfigOptionPoints>("bed_shape"),
|
||||
//Y20
|
||||
*wizard_p()->custom_config->option<ConfigOptionPoints>("bed_exclude_area_0"),
|
||||
*wizard_p()->custom_config->option<ConfigOptionPoints>("bed_exclude_area_1"),
|
||||
//Y20 //B52
|
||||
*wizard_p()->custom_config->option<ConfigOptionPoints>("bed_exclude_area"),
|
||||
*wizard_p()->custom_config->option<ConfigOptionString>("bed_custom_texture"),
|
||||
*wizard_p()->custom_config->option<ConfigOptionString>("bed_custom_model"));
|
||||
|
||||
@@ -1841,15 +1840,13 @@ PageBedShape::PageBedShape(ConfigWizard *parent)
|
||||
void PageBedShape::apply_custom_config(DynamicPrintConfig &config)
|
||||
{
|
||||
const std::vector<Vec2d>& points = shape_panel->get_shape();
|
||||
//Y20
|
||||
const std::vector<Vec2d>& exclude_area_0 = shape_panel->get_exclude_area_0();
|
||||
const std::vector<Vec2d>& exclude_area_1 = shape_panel->get_exclude_area_1();
|
||||
//Y20 //B52
|
||||
const std::vector<Vec2d>& exclude_area = shape_panel->get_exclude_area();
|
||||
const std::string& custom_texture = shape_panel->get_custom_texture();
|
||||
const std::string& custom_model = shape_panel->get_custom_model();
|
||||
config.set_key_value("bed_shape", new ConfigOptionPoints(points));
|
||||
//Y20
|
||||
config.set_key_value("bed_exclude_area_0", new ConfigOptionPoints(exclude_area_0));
|
||||
config.set_key_value("bed_exclude_area_1", new ConfigOptionPoints(exclude_area_1));
|
||||
//Y20 //B52
|
||||
config.set_key_value("bed_exclude_area", new ConfigOptionPoints(exclude_area));
|
||||
config.set_key_value("bed_custom_texture", new ConfigOptionString(custom_texture));
|
||||
config.set_key_value("bed_custom_model", new ConfigOptionString(custom_model));
|
||||
}
|
||||
@@ -3320,8 +3317,8 @@ ConfigWizard::ConfigWizard(wxWindow *parent)
|
||||
|
||||
p->load_vendors();
|
||||
p->custom_config.reset(DynamicPrintConfig::new_from_defaults_keys({
|
||||
//Y20
|
||||
"gcode_flavor", "bed_shape", "bed_exclude_area_0", "bed_exclude_area_1", "bed_custom_texture", "bed_custom_model", "nozzle_diameter", "filament_diameter", "temperature", "bed_temperature",
|
||||
//Y20 //B52
|
||||
"gcode_flavor", "bed_shape", "bed_exclude_area", "bed_custom_texture", "bed_custom_model", "nozzle_diameter", "filament_diameter", "temperature", "bed_temperature",
|
||||
}));
|
||||
|
||||
p->index = new ConfigWizardIndex(this);
|
||||
|
||||
Reference in New Issue
Block a user