mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-29 19:53:44 -06:00 
			
		
		
		
	ENH: fix duplicate setting name
As title. Test multi-color 3MF loading OK Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I9b2791f8d020a051f934cda3027293a948b07088
This commit is contained in:
		
							parent
							
								
									24ce050a91
								
							
						
					
					
						commit
						c61fd447c9
					
				
					 6 changed files with 13 additions and 7 deletions
				
			
		|  | @ -3,9 +3,6 @@ | |||
|     "name": "fdm_filament_common", | ||||
|     "from": "system", | ||||
|     "instantiation": "false", | ||||
|     "filament_colour":[ | ||||
|         "#00AE42" | ||||
|     ], | ||||
|     "cool_plate_temp" : [ | ||||
|         "60" | ||||
|     ], | ||||
|  |  | |||
|  | @ -734,7 +734,7 @@ static std::vector<std::string> s_Preset_print_options { | |||
| }; | ||||
| 
 | ||||
| static std::vector<std::string> s_Preset_filament_options { | ||||
|     "filament_colour", "filament_diameter", "filament_type", "filament_soluble", "filament_is_support", "filament_max_volumetric_speed", | ||||
|     /* "filament_colour",*/ "default_filament_colour", "filament_diameter", "filament_type", "filament_soluble", "filament_is_support", "filament_max_volumetric_speed", | ||||
|     "filament_flow_ratio", "filament_density", "filament_cost", "filament_minimal_purge_on_wipe_tower", | ||||
|     "nozzle_temperature", "nozzle_temperature_initial_layer", | ||||
|     // BBS
 | ||||
|  |  | |||
|  | @ -88,6 +88,7 @@ bool Print::invalidate_state_by_config_options(const ConfigOptionResolver & /* n | |||
|         "fan_cooling_layer_time", | ||||
|         "full_fan_speed_layer", | ||||
|         "filament_colour", | ||||
|         "default_filament_colour", | ||||
|         "filament_diameter", | ||||
|         "filament_density", | ||||
|         "filament_cost", | ||||
|  |  | |||
|  | @ -1064,13 +1064,20 @@ void PrintConfigDef::init_fff_params() | |||
|     def->mode = comSimple; | ||||
|     def->set_default_value(new ConfigOptionInts { 60 }); | ||||
| 
 | ||||
|     def           = this->add("filament_colour", coStrings); | ||||
|     def           = this->add("default_filament_colour", coStrings); | ||||
|     def->label    = L("Defualt color"); | ||||
|     def->tooltip  = L("Only used as a visual help on UI"); | ||||
|     def->tooltip  = L("Default filament colour"); | ||||
|     def->gui_type = ConfigOptionDef::GUIType::color; | ||||
|     def->mode     = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionStrings{"#00AE42"}); | ||||
| 
 | ||||
|     def = this->add("filament_colour", coStrings); | ||||
|     def->label = L("Color"); | ||||
|     def->tooltip = L("Only used as a visual help on UI"); | ||||
|     def->gui_type = ConfigOptionDef::GUIType::color; | ||||
|     def->mode = comDevelop; | ||||
|     def->set_default_value(new ConfigOptionStrings{ "#00AE42" }); | ||||
| 
 | ||||
|     def = this->add("filament_max_volumetric_speed", coFloats); | ||||
|     def->label = L("Max volumetric speed"); | ||||
|     def->tooltip = L("This setting stands for how much volume of filament can be melted and extruded per second. " | ||||
|  |  | |||
|  | @ -755,6 +755,7 @@ PRINT_CONFIG_CLASS_DEFINE( | |||
|     ((ConfigOptionBools,               filament_soluble)) | ||||
|     ((ConfigOptionBools,               filament_is_support)) | ||||
|     ((ConfigOptionFloats,              filament_cost)) | ||||
|     ((ConfigOptionStrings,             default_filament_colour)) | ||||
|     ((ConfigOptionInts,                temperature_vitrification))  //BBS
 | ||||
|     ((ConfigOptionFloats,              filament_max_volumetric_speed)) | ||||
|     ((ConfigOptionFloat,               machine_load_filament_time)) | ||||
|  |  | |||
|  | @ -2421,7 +2421,7 @@ void TabFilament::build() | |||
|         optgroup->append_single_option_line("filament_soluble"); | ||||
|         // BBS
 | ||||
|         optgroup->append_single_option_line("filament_is_support"); | ||||
|         optgroup->append_single_option_line("filament_colour"); | ||||
|         optgroup->append_single_option_line("default_filament_colour"); | ||||
|         optgroup->append_single_option_line("filament_diameter"); | ||||
|         optgroup->append_single_option_line("filament_flow_ratio"); | ||||
|         optgroup->append_single_option_line("filament_density"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 salt.wei
						salt.wei