mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	ENH: set amsMapping info when use_ams is false
Change-Id: Idd7c8ca171806fcf5897eb6f257bb68e68ec8070
This commit is contained in:
		
							parent
							
								
									c26c9b8602
								
							
						
					
					
						commit
						f4bd9dac87
					
				
					 1 changed files with 12 additions and 1 deletions
				
			
		|  | @ -2112,7 +2112,18 @@ void SelectMachineDialog::on_ok() | |||
|     // get ams_mapping_result
 | ||||
|     std::string ams_mapping_array; | ||||
|     std::string ams_mapping_info; | ||||
|     get_ams_mapping_result(ams_mapping_array, ams_mapping_info); | ||||
|     if (ams_check->GetValue()) | ||||
|         get_ams_mapping_result(ams_mapping_array, ams_mapping_info); | ||||
|     else { | ||||
|         json mapping_info_json = json::array(); | ||||
|         json item; | ||||
|         if (m_filaments.size() > 0) { | ||||
|             item["sourceColor"]  = m_filaments[0].color.substr(1, 6) + "FF"; | ||||
|             item["filamentType"] = m_filaments[0].type; | ||||
|             mapping_info_json.push_back(item); | ||||
|             ams_mapping_info = mapping_info_json.dump(); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     result = m_plater->send_gcode(m_print_plate_idx, [this](int export_stage, int current, int total, bool &cancel) { | ||||
|         if (this->m_is_canceled) return; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Stone Li
						Stone Li