cbe2bb675564fdcd8613473123dcc2d32acf6d83
Sculpt mode in Grease Pencil should not use the origin point of `DrawingPlacement` and only apply the plane projection to relative offsets. A new variant of the `foreach_editable_drawing` function is introduced that provides a `DeltaProjectionFunc` instead of `DrawingPlacement`. This projection callback takes a layer-space position and a screen-space delta and returns a layer-space position with the constrained delta applied. The projection function is based on the tools settings' "lock axis", like `DrawingPlacement`, but ignores the origin point. Exception is the smoothing tool, which does not restrict movement along the lock axis. This can be implemented if desired, but for a non-directional tool it seems the lock axis isn't very meaningful. Pull Request: https://projects.blender.org/blender/blender/pulls/128022
…
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%
