baffd174c8303728aae4c56caab0294af6b84b1f
In Sculpt, Vertex Paint, and Weight Paint, the operator used while painting (`SCULPT_OT_brush_stroke`, `PAINT_OT_vertex_paint`, and `PAINT_OT_weight_paint`) can currently be executed in python as they define `exec` methods. However, each of them has a implicit dependency on the `OperatorStrokeElement` struct containing a `location` corresponding to the object space location of the stroke daub. This limits the usefulness of the operator in non-interactive situations, as determining the actual location of a stroke on a 3D object requires access to the Paint BVH to perform a raycast and project the mouse from 2D region space into object space. To allow users to define a stroke in region space coordinates, this commit adds a new parameter to the associated operators, `reproject_stroke` which indicates whether or not the current `location` data should be discarded and replaced with newly calculated positions. Ref: #132960 Pull Request: https://projects.blender.org/blender/blender/pulls/132974
…
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%
