mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:56:01 +08:00
offset removed
CURA-7647
This commit is contained in:
parent
0bb1f0b7c3
commit
ee7ecc1acc
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user