mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:29:05 +08:00
Remove local variable.
This commit is contained in:
parent
4973d53057
commit
2f1f370fe0
@ -417,10 +417,9 @@ class SimulationView(CuraView):
|
||||
return self._max_flow_rate
|
||||
|
||||
def getMinFlowRate(self) -> float:
|
||||
min_flow_rate = self._min_flow_rate
|
||||
if abs(min_flow_rate - sys.float_info.max) < 10: # Some lenience due to floating point rounding.
|
||||
if abs(self._min_flow_rate - sys.float_info.max) < 10: # Some lenience due to floating point rounding.
|
||||
return 0.0 # If it's still max-float, there are no measurements. Use 0 then.
|
||||
return min_flow_rate
|
||||
return self._min_flow_rate
|
||||
|
||||
def calculateMaxLayers(self) -> None:
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user