mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Fetch count from simple property instead of recalculation.
Polygons don't change when in layer-view. There's already an analogous elementCount property anyway, so a vertexCount property can't do much harm. Just keep in mind that when the polygons are altered, it should be either done via build, or the lineMeshXXXCount methods should be used instead.
This commit is contained in:
parent
818438a8d6
commit
e119c46944
3 changed files with 12 additions and 1 deletions
|
@ -162,7 +162,7 @@ class SimulationPass(RenderPass):
|
|||
head_position = Vector(polygon.data[index+offset][0], polygon.data[index+offset][1], polygon.data[index+offset][2]) + node.getWorldPosition()
|
||||
break
|
||||
break
|
||||
end += layer_data.getLayer(layer).lineMeshVertexCount()
|
||||
end += layer_data.getLayer(layer).vertexCount
|
||||
if layer < self._layer_view._minimum_layer_num:
|
||||
start = end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue