11bfac7f1109fc4c7ca760129ec29c6aae9333df
There are two ways the first stroke point is moved after initial placement: - The `process_extension_sample` overwrites the initial values of the sample point after `process_start_sample`. It copies the _new_ sample position, until a threshold (3 pixels) is reached and the 2nd point is created, and the 1st point remains stationary. - After initial placement the point may still get shifted due to the resampling and interpolation used. Long sections between stroke samples may get subdivided and the positions of the two samples are linearly interpolated. However, the interpolation starts at 1/n, meaning the first interpolated point never matches the first sample. This is correct for later samples where the last point should not be repeated, but it ends up moving the first curve point again when the 2nd sample is processed. This patch fixes both issues by keeping the first generated point stationary and never touching its position again. Pull Request: https://projects.blender.org/blender/blender/pulls/121011
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
