mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 04:08:02 -06:00
FIX:add layer range, the extruder should inherit from object config
Change-Id: I11615ebe40393cf1a1fe5caad7490dc6083ec2e7
This commit is contained in:
parent
9775e84b4a
commit
5f4efe150e
1 changed files with 5 additions and 2 deletions
|
@ -2900,7 +2900,10 @@ DynamicPrintConfig ObjectList::get_default_layer_config(const int obj_idx)
|
||||||
wxGetApp().preset_bundle->prints.get_edited_preset().config.opt_float("layer_height");
|
wxGetApp().preset_bundle->prints.get_edited_preset().config.opt_float("layer_height");
|
||||||
config.set_key_value("layer_height",new ConfigOptionFloat(layer_height));
|
config.set_key_value("layer_height",new ConfigOptionFloat(layer_height));
|
||||||
// BBS
|
// BBS
|
||||||
config.set_key_value("extruder", new ConfigOptionInt(1));
|
int extruder = object(obj_idx)->config.has("extruder") ?
|
||||||
|
object(obj_idx)->config.opt_int("extruder") :
|
||||||
|
wxGetApp().preset_bundle->prints.get_edited_preset().config.opt_float("extruder");
|
||||||
|
config.set_key_value("extruder", new ConfigOptionInt(extruder));
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
@ -3314,7 +3317,7 @@ void ObjectList::part_selection_changed()
|
||||||
Sidebar& panel = wxGetApp().sidebar();
|
Sidebar& panel = wxGetApp().sidebar();
|
||||||
panel.Freeze();
|
panel.Freeze();
|
||||||
|
|
||||||
wxGetApp().plater()->canvas3D()->handle_sidebar_focus_event("", false);
|
//wxGetApp().plater()->canvas3D()->handle_sidebar_focus_event("", false);
|
||||||
// BBS
|
// BBS
|
||||||
//wxGetApp().obj_manipul() ->UpdateAndShow(update_and_show_manipulations);
|
//wxGetApp().obj_manipul() ->UpdateAndShow(update_and_show_manipulations);
|
||||||
wxGetApp().obj_settings()->UpdateAndShow(update_and_show_settings);
|
wxGetApp().obj_settings()->UpdateAndShow(update_and_show_settings);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue