offset removed

CURA-7647
This commit is contained in:
saumya.jain 2024-01-03 09:16:04 +01:00
parent 0bb1f0b7c3
commit ee7ecc1acc

View file

@ -157,7 +157,7 @@ class SimulationPass(RenderPass):
continue continue
# The head position is calculated and translated # The head position is calculated and translated
ratio = self._layer_view.getCurrentPath() - math.floor(self._layer_view.getCurrentPath()) ratio = self._layer_view.getCurrentPath() - math.floor(self._layer_view.getCurrentPath())
pos_a = Vector(polygon.data[index][0], polygon.data[index + offset][1], pos_a = Vector(polygon.data[index][0], polygon.data[index][1],
polygon.data[index][2]) polygon.data[index][2])
if ratio <= 0.0001 or index + 1 == len(polygon.data): if ratio <= 0.0001 or index + 1 == len(polygon.data):
# in case there multiple polygons and polygon changes, the first point has the same value as the last point in the previous polygon # in case there multiple polygons and polygon changes, the first point has the same value as the last point in the previous polygon