Fix #136091: Grease Pencil: Broken wireframe rendering

In the `grease_pencil_wire_batch_ensure` when computing the indices,
the function was using `points_by_curve` instead of
`evaluated_points_by_curve`.
Now the correct indices are used.

Pull Request: https://projects.blender.org/blender/blender/pulls/138489
This commit is contained in:
Falk David
2025-05-06 14:16:57 +02:00
committed by Falk David
parent d0bc85487a
commit 01fb09b240

View File

@@ -1376,7 +1376,7 @@ static void grease_pencil_wire_batch_ensure(Object &object,
int index_len = 0;
for (const ed::greasepencil::DrawingInfo &info : drawings) {
const bke::CurvesGeometry &curves = info.drawing.strokes();
const OffsetIndices<int> points_by_curve = curves.points_by_curve();
const OffsetIndices<int> points_by_curve = curves.evaluated_points_by_curve();
const VArray<bool> cyclic = curves.cyclic();
IndexMaskMemory memory;
const IndexMask visible_strokes = ed::greasepencil::retrieve_visible_strokes(