mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 17:45:57 +08:00
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer
This commit is contained in:
commit
987dc3ddb1
@ -762,6 +762,8 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
|
|||||||
((ConfigOptionInt, standby_temperature_delta))
|
((ConfigOptionInt, standby_temperature_delta))
|
||||||
((ConfigOptionInts, temperature))
|
((ConfigOptionInts, temperature))
|
||||||
((ConfigOptionInt, threads))
|
((ConfigOptionInt, threads))
|
||||||
|
((ConfigOptionPoints, thumbnails))
|
||||||
|
((ConfigOptionEnum<GCodeThumbnailsFormat>, thumbnails_format))
|
||||||
((ConfigOptionBools, wipe))
|
((ConfigOptionBools, wipe))
|
||||||
((ConfigOptionBool, wipe_tower))
|
((ConfigOptionBool, wipe_tower))
|
||||||
((ConfigOptionFloat, wipe_tower_x))
|
((ConfigOptionFloat, wipe_tower_x))
|
||||||
|
@ -1030,7 +1030,7 @@ bool UnsavedChangesDialog::save(PresetCollection* dependent_presets, bool show_s
|
|||||||
wxString get_string_from_enum(const std::string& opt_key, const DynamicPrintConfig& config, bool is_infill = false)
|
wxString get_string_from_enum(const std::string& opt_key, const DynamicPrintConfig& config, bool is_infill = false)
|
||||||
{
|
{
|
||||||
const ConfigOptionDef& def = config.def()->options.at(opt_key);
|
const ConfigOptionDef& def = config.def()->options.at(opt_key);
|
||||||
const std::vector<std::string>& names = def.enum_labels;//ConfigOptionEnum<T>::get_enum_names();
|
const std::vector<std::string>& names = def.enum_labels.empty() ? def.enum_values : def.enum_labels;
|
||||||
int val = config.option(opt_key)->getInt();
|
int val = config.option(opt_key)->getInt();
|
||||||
|
|
||||||
// Each infill doesn't use all list of infill declared in PrintConfig.hpp.
|
// Each infill doesn't use all list of infill declared in PrintConfig.hpp.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user