mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 06:35:56 +08:00
#735 fix extruder name crash when single_extruder_multi_material
This commit is contained in:
parent
fa4aab027b
commit
2ff11f360b
@ -3778,7 +3778,7 @@ void PrintConfigDef::init_fff_params()
|
|||||||
def->label = L("Tool name");
|
def->label = L("Tool name");
|
||||||
def->category = OptionCategory::extruders;
|
def->category = OptionCategory::extruders;
|
||||||
def->tooltip = L("Only used for klipper, where you can name the extruder. If not set, will be 'extruderX' with 'X' replaced by the extruder number.");
|
def->tooltip = L("Only used for klipper, where you can name the extruder. If not set, will be 'extruderX' with 'X' replaced by the extruder number.");
|
||||||
def->mode = comAdvanced;
|
def->mode = comExpert;
|
||||||
def->set_default_value(new ConfigOptionStrings(""));
|
def->set_default_value(new ConfigOptionStrings(""));
|
||||||
|
|
||||||
def = this->add("top_infill_extrusion_width", coFloatOrPercent);
|
def = this->add("top_infill_extrusion_width", coFloatOrPercent);
|
||||||
|
@ -1914,7 +1914,7 @@ bool Tab::create_pages(std::string setting_type_name, int idx_page)
|
|||||||
{
|
{
|
||||||
TabPrinter* tab = nullptr;
|
TabPrinter* tab = nullptr;
|
||||||
if ((tab = dynamic_cast<TabPrinter*>(this)) == nullptr) return;
|
if ((tab = dynamic_cast<TabPrinter*>(this)) == nullptr) return;
|
||||||
if (m_config->opt_bool("single_extruder_multi_material") && tab->m_extruders_count > 1 && opt_key.find_first_of("nozzle_diameter") != std::string::npos)
|
if (m_config->opt_bool("single_extruder_multi_material") && tab->m_extruders_count > 1 && opt_key.find("nozzle_diameter") != std::string::npos)
|
||||||
{
|
{
|
||||||
SuppressBackgroundProcessingUpdate sbpu;
|
SuppressBackgroundProcessingUpdate sbpu;
|
||||||
const double new_nd = boost::any_cast<double>(value);
|
const double new_nd = boost::any_cast<double>(value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user