diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-02 13:07:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-02 14:07:58 +0300 |
commit | b2a10fa615efcf403a9ca23005d86ca149ebf56b (patch) | |
tree | ac611243d2de0e5cb0ce7d5bc81ce27da7d5b561 /source/blender/makesdna | |
parent | 9d34ae604827813ead8c9071ff1c346e9aff7e29 (diff) |
Vertex Paint: projection options
This makes vertex paint match image painting more closely.
- Add falloff shape option sphere/circle
where sphere uses a 3D radius around the cursor and
circle uses a 2D radius (projected), like previous releases.
- Add normal angle option so you can control the falloff.
- Add Cull option, to paint onto faces pointing away.
Disabling normals, culling and using circle falloff
allows you to paint through the mesh.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 3201b75ee1e..e9caf7ada1c 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -1117,18 +1117,26 @@ typedef struct UvSculpt { /* Vertex Paint */ typedef struct VPaint { Paint paint; - short flag, pad; + short flag; + char falloff_shape, normal_angle; int radial_symm[3]; /* For mirrored painting */ } VPaint; /* VPaint.flag */ enum { - // VP_COLINDEX = (1 << 0), /* only paint onto active material*/ /* deprecated since before 2.49 */ - // VP_AREA = (1 << 1), /* deprecated since 2.70 */ - VP_NORMALS = (1 << 3), - VP_SPRAY = (1 << 4), - // VP_MIRROR_X = (1 << 5), /* deprecated in 2.5x use (me->editflag & ME_EDIT_MIRROR_X) */ - VP_ONLYVGROUP = (1 << 7) /* weight paint only */ + VP_FLAG_PROJECT_BACKFACE = (1 << 0), + /* TODO */ + // VP_FLAG_PROJECT_XRAY = (1 << 1), + VP_FLAG_PROJECT_FLAT = (1 << 3), + VP_FLAG_SPRAY = (1 << 4), + /* weight paint only */ + VP_FLAG_VGROUP_RESTRICT = (1 << 7) +}; + +/* VPaint.falloff_shape */ +enum { + VP_FALLOFF_SHAPE_SPHERE = 0, + VP_FALLOFF_SHAPE_TUBE = 1, }; /* ------------------------------------------- */ |