mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
maintenence.
CURA-7647
This commit is contained in:
parent
3c0b9a65db
commit
a9aba2df74
1 changed files with 4 additions and 3 deletions
|
@ -402,13 +402,14 @@ class SimulationView(CuraView):
|
||||||
def getMaxFeedrate(self) -> float:
|
def getMaxFeedrate(self) -> float:
|
||||||
return self._max_feedrate
|
return self._max_feedrate
|
||||||
|
|
||||||
def getSimulationTime(self, currentIndex) -> list:
|
def getSimulationTime(self, currentIndex) -> float:
|
||||||
try:
|
try:
|
||||||
return self._lengths_of_polyline[self._current_layer_num][currentIndex] / self._current_feedrates[self._current_layer_num][currentIndex]
|
return (self._lengths_of_polyline[self._current_layer_num][currentIndex] / self._current_feedrates[self._current_layer_num][currentIndex])[0]
|
||||||
|
|
||||||
except:
|
except:
|
||||||
# In case of change in layers, currentIndex comes one more than the items in the lengths_of_polyline
|
# In case of change in layers, currentIndex comes one more than the items in the lengths_of_polyline
|
||||||
# We give 1 second time for layer change
|
# We give 1 second time for layer change
|
||||||
return 1
|
return 1.0
|
||||||
|
|
||||||
def getMinThickness(self) -> float:
|
def getMinThickness(self) -> float:
|
||||||
if abs(self._min_thickness - sys.float_info.max) < 10: # Some lenience due to floating point rounding.
|
if abs(self._min_thickness - sys.float_info.max) < 10: # Some lenience due to floating point rounding.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue