mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Merge branch 'master' of https://github.com/prusa3d/Slic3r into time_estimate
This commit is contained in:
		
						commit
						5f3ee74e0e
					
				
					 1 changed files with 1 additions and 6 deletions
				
			
		|  | @ -1402,18 +1402,13 @@ void GCode::apply_print_config(const PrintConfig &print_config) | |||
| 
 | ||||
| void GCode::append_full_config(const Print& print, std::string& str) | ||||
| { | ||||
|     char buff[4096]; | ||||
| 
 | ||||
|     const StaticPrintConfig *configs[] = { &print.config, &print.default_object_config, &print.default_region_config }; | ||||
|     for (size_t i = 0; i < sizeof(configs) / sizeof(configs[0]); ++i) { | ||||
|         const StaticPrintConfig *cfg = configs[i]; | ||||
|         for (const std::string &key : cfg->keys()) | ||||
|         { | ||||
|             if (key != "compatible_printers") | ||||
|             { | ||||
|                 sprintf(buff, "; %s = %s\n", key.c_str(), cfg->serialize(key).c_str()); | ||||
|                 str += buff; | ||||
|             } | ||||
|                 str += "; " + key + " = " + cfg->serialize(key) + "\n"; | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri