Files
test/source
Falk David 1334d64780 Refactor: GPv3: Move stroke operation construction to stroke_update_step
Previously, the stroke operations were created in the `stroke_test_start`
callback function. This causes a few issues:
* Each mode had it's own `test_start` function and it's own function
  to create the stroke operations.
* Only the mouse position was available for the start sample.

With this change, the `stroke_test_start` function now does nothing.
Instead, the operations are created in the common `stroke_update_step`
function using `get_stroke_operation` the first time it's called.
This also means that the start sample is populated with the correct
start pressure.

Pull Request: https://projects.blender.org/blender/blender/pulls/122555
2024-06-03 11:50:03 +02:00
..