mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Only validate support_material_extrusion_width with supports
or raft enabled.
This commit is contained in:
		
							parent
							
								
									39b07e7b94
								
							
						
					
					
						commit
						46fa83adac
					
				
					 1 changed files with 8 additions and 12 deletions
				
			
		|  | @ -1310,19 +1310,15 @@ std::string Print::validate() const | |||
|                 return L("Layer height can't be greater than nozzle diameter"); | ||||
| 
 | ||||
|             // Validate extrusion widths.
 | ||||
|             for (const char *opt_key : { "extrusion_width", "support_material_extrusion_width" }) { | ||||
|             	std::string err_msg; | ||||
|             	if (! validate_extrusion_width(object->config(), opt_key, layer_height, err_msg)) | ||||
|             		return err_msg; | ||||
|             } | ||||
|             for (const char *opt_key : { "perimeter_extrusion_width", "external_perimeter_extrusion_width", "infill_extrusion_width", "solid_infill_extrusion_width", "top_infill_extrusion_width" }) { | ||||
|             std::string err_msg; | ||||
|             if (! validate_extrusion_width(object->config(), "extrusion_width", layer_height, err_msg)) | ||||
|             	return err_msg; | ||||
|             if ((object->config().support_material || object->config().raft_layers > 0) && ! validate_extrusion_width(object->config(), "support_material_extrusion_width", layer_height, err_msg)) | ||||
|             	return err_msg; | ||||
|             for (const char *opt_key : { "perimeter_extrusion_width", "external_perimeter_extrusion_width", "infill_extrusion_width", "solid_infill_extrusion_width", "top_infill_extrusion_width" }) | ||||
| 				for (size_t i = 0; i < object->region_volumes.size(); ++ i) | ||||
|             		if (! object->region_volumes[i].empty()) { | ||||
| 		            	std::string err_msg; | ||||
| 		            	if (! validate_extrusion_width(this->get_region(i)->config(), opt_key, layer_height, err_msg)) | ||||
| 		            		return err_msg; | ||||
|             		} | ||||
|             } | ||||
|             		if (! object->region_volumes[i].empty() && ! validate_extrusion_width(this->get_region(i)->config(), opt_key, layer_height, err_msg)) | ||||
| 		            	return err_msg; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv