mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-29 19:53:44 -06:00 
			
		
		
		
	ENH: open the filament_color preset
Signed-off-by: qing.zhang <qing.zhang@bambulab.com> Change-Id: Idca08be5401aad1672adc46f9604338e3456f519
This commit is contained in:
		
							parent
							
								
									569f76ecf1
								
							
						
					
					
						commit
						4d8eefb1ea
					
				
					 4 changed files with 11 additions and 8 deletions
				
			
		|  | @ -3,6 +3,9 @@ | |||
|     "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", "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
 | ||||
|  |  | |||
|  | @ -1064,12 +1064,12 @@ void PrintConfigDef::init_fff_params() | |||
|     def->mode = comSimple; | ||||
|     def->set_default_value(new ConfigOptionInts { 60 }); | ||||
| 
 | ||||
|     def = this->add("filament_colour", coStrings); | ||||
|     def->label = L("Color"); | ||||
|     def->tooltip = L("Only used as a visual help on UI"); | ||||
|     def           = this->add("filament_colour", coStrings); | ||||
|     def->label    = L("Defualt 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->mode     = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionStrings{"#00AE42"}); | ||||
| 
 | ||||
|     def = this->add("filament_max_volumetric_speed", coFloats); | ||||
|     def->label = L("Max volumetric speed"); | ||||
|  | @ -2926,7 +2926,7 @@ void PrintConfigDef::init_filament_option_keys() | |||
|         "filament_diameter", "min_layer_height", "max_layer_height", | ||||
|         "retraction_length", "z_hop", "retraction_speed", "deretraction_speed", | ||||
|         "retract_before_wipe", "retract_restart_extra", "retraction_minimum_travel", "wipe", "wipe_distance", | ||||
|         "retract_when_changing_layer", "retract_length_toolchange", "retract_restart_extra_toolchange", /*"filament_colour",*/ | ||||
|         "retract_when_changing_layer", "retract_length_toolchange", "retract_restart_extra_toolchange", "filament_colour", | ||||
|         "default_filament_profile" | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -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("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
	
	 qing.zhang
						qing.zhang