The official Blender project repository.
Find a file
Sean Kim baffd174c8 Paint: Allow executing 3D paint operators without location
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
2025-01-18 02:17:47 +01:00
.gitea
.github
build_files Fix #132198: Remove license dialog from the msi installer 2025-01-17 18:45:26 +01:00
doc
extern
intern
lib
locale
release Assets: Update submodule hash 2025-01-17 21:30:22 +01:00
scripts
source Paint: Allow executing 3D paint operators without location 2025-01-18 02:17:47 +01:00
tests Refactor: Tests: bl_blendfile: Use unittest module instead of asserts. 2025-01-17 21:05:39 +01:00
tools
.clang-format
.clang-tidy
.editorconfig
.git-blame-ignore-revs
.gitignore
.gitmodules
AUTHORS
CMakeLists.txt
COPYING
GNUmakefile
make.bat
pyproject.toml
README.md

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.

Blender screenshot

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.