91f1f3fc06
This implements all the sculpt tools in Grease Pencil 3. UI changes in the 3D view header and keymap entries for sculpt mode are still minimal, more entries should be added once the relevant operators are supported. A set of utility functions and a shared base class `GreasePencilStrokeOperationCommon` for sculpt operations has been added to make individual operations less verbose. The `GreasePencilStrokeParams` struct bundles common arguments to reduce the amount of boilerplate code. The `foreach_editable_drawing` utility function takes care of setting up the parameters and finding the right drawings, so the tool only has to modify the data. Common features like tracking mouse movement and inverting brush influence are handled by the common base class. Most operations are then relatively simple, with the exception of the Grab and Clone operations. - __Grab__ stores a stroke mask and weights on initialization of the stroke, rather than working with the usual selection mask. - __Clone__ needs access to the clipboard, which requires exposing the clipboard in the editor API. Pull Request: https://projects.blender.org/blender/blender/pulls/120508 |
||
---|---|---|
.. | ||
freestyle | ||
modules | ||
presets | ||
site | ||
startup | ||
templates_osl | ||
templates_py |