mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Fix error in PrintRegion::flow() port
This commit is contained in:
		
							parent
							
								
									6adc3477c9
								
							
						
					
					
						commit
						f06566dd3a
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -48,6 +48,7 @@ class ConfigOptionFloat : public ConfigOption | |||
|     double value;  // use double instead of float for preserving compatibility with values coming from Perl
 | ||||
|     ConfigOptionFloat() : value(0) {}; | ||||
|      | ||||
|     operator float() const { return this->value; }; | ||||
|     operator double() const { return this->value; }; | ||||
|      | ||||
|     std::string serialize() const { | ||||
|  |  | |||
|  | @ -60,7 +60,7 @@ PrintRegion::flow(FlowRole role, double layer_height, bool bridge, bool first_la | |||
|     } | ||||
|     double nozzle_diameter = this->_print->config.nozzle_diameter.get_at(extruder-1); | ||||
|      | ||||
|     return Flow::new_from_config_width(role, config_width, nozzle_diameter, layer_height, bridge ? this->config.bridge_flow_ratio : 0); | ||||
|     return Flow::new_from_config_width(role, config_width, nozzle_diameter, layer_height, bridge ? (float)this->config.bridge_flow_ratio : 0.0); | ||||
| } | ||||
| 
 | ||||
| #ifdef SLIC3RXS | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci