mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -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) | 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 }; |     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) { |     for (size_t i = 0; i < sizeof(configs) / sizeof(configs[0]); ++i) { | ||||||
|         const StaticPrintConfig *cfg = configs[i]; |         const StaticPrintConfig *cfg = configs[i]; | ||||||
|         for (const std::string &key : cfg->keys()) |         for (const std::string &key : cfg->keys()) | ||||||
|         { |         { | ||||||
|             if (key != "compatible_printers") |             if (key != "compatible_printers") | ||||||
|             { |                 str += "; " + key + " = " + cfg->serialize(key) + "\n"; | ||||||
|                 sprintf(buff, "; %s = %s\n", key.c_str(), cfg->serialize(key).c_str()); |  | ||||||
|                 str += buff; |  | ||||||
|             } |  | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri