mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
maintenence.
CURA-7647
This commit is contained in:
parent
3c0b9a65db
commit
a9aba2df74
@ -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…
x
Reference in New Issue
Block a user