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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user