Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-05-20 02:41:47 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-05-26 21:45:20 +0300
commit9aea7dc7c65b94aff0dda299c7269a252bf04b05 (patch)
tree76eb0111f915e9a10fc157169bd19cfd807723db /source/blender/editors/sculpt_paint/paint_stroke.c
parent9b0f65c4a64120efca61450bad0556a653c36feb (diff)
Fix Pose Brush origin position with large brush size
When the brush size is bigger than the entire mesh, fdata.tot_co can be 0, so the pose origin will default to (0,0,0), which does not make much sense. After this patch, the pose origin will be set to the farthest vertex from the pose origin, which at least should be in the surface of the mesh and in most cases in the direction the pose brush was already detecting the origin. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7773
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_stroke.c')
0 files changed, 0 insertions, 0 deletions