mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed missing default_region_config values exported into the g-code.
This commit is contained in:
		
							parent
							
								
									3e82eb7010
								
							
						
					
					
						commit
						c431bf5982
					
				
					 1 changed files with 10 additions and 4 deletions
				
			
		|  | @ -666,10 +666,14 @@ bool GCode::do_export(FILE *file, Print &print) | |||
| 
 | ||||
|     // Append full config.
 | ||||
|     fprintf(file, "\n"); | ||||
|     for (const std::string &key : print.config.keys()) | ||||
|         fprintf(file, "; %s = %s\n", key.c_str(), print.config.serialize(key).c_str()); | ||||
|     for (const std::string &key : print.default_object_config.keys()) | ||||
|         fprintf(file, "; %s = %s\n", key.c_str(), print.default_object_config.serialize(key).c_str()); | ||||
|     { | ||||
|         StaticPrintConfig *configs[] = { &print.config, &print.default_object_config, &print.default_region_config }; | ||||
|         for (size_t i = 0; i < sizeof(configs) / sizeof(configs[0]); ++ i) { | ||||
|             StaticPrintConfig *cfg = configs[i]; | ||||
|         for (const std::string &key : cfg->keys()) | ||||
|             fprintf(file, "; %s = %s\n", key.c_str(), cfg->serialize(key).c_str()); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     return true; | ||||
| } | ||||
|  | @ -1062,6 +1066,8 @@ void GCode::process_layer( | |||
|                 copies = print_object->_shifted_copies; | ||||
|             else | ||||
|                 copies.push_back(print_object->_shifted_copies[single_object_idx]); | ||||
|             // Sort the copies by the closest point starting with the current print position.
 | ||||
|              | ||||
|             for (const Point © : copies) { | ||||
|                 // When starting a new object, use the external motion planner for the first travel move.
 | ||||
|                 std::pair<const PrintObject*, Point> this_object_copy(print_object, copy); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv