Fix #129012: GPv3: Crash when increasing curve resolution

Blender would crash in certain cases when using the `Set Curve Resolution`
operator to increase the curve resolution.

This was because the `evaluated_offsets_cache` was not tagged
to be updated. The fix makes sure to use `tag_topology_changed`
to tag the offsets cache as dirty.

Pull Request: https://projects.blender.org/blender/blender/pulls/129098
This commit is contained in:
Falk David
2024-10-16 14:40:27 +02:00
committed by Falk David
parent 7c9023ca41
commit aea400466c
@@ -3558,7 +3558,7 @@ static int grease_pencil_set_curve_resolution_exec(bContext *C, wmOperator *op)
}
index_mask::masked_fill(curves.resolution_for_write(), resolution, editable_strokes);
info.drawing.tag_positions_changed();
info.drawing.tag_topology_changed();
changed = true;
});