diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-11-06 01:42:11 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-11-06 01:42:11 +0300 |
commit | 1682a478768adbc3c724e324e9c507de802ad5af (patch) | |
tree | dc992e0478ce9d57147557c65dbcdbd297e0ed73 /source/blender/editors/sculpt_paint/sculpt.c | |
parent | 057f9caac6079a568770bdc0e7b798d89922ab73 (diff) | |
parent | 02677ec4e0fadc9b2bec694fd14155ea16e48adf (diff) |
Merge branch 'blender-v2.91-release'
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 8afb10f254f..d2b8c17160c 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -298,6 +298,21 @@ void SCULPT_active_vertex_normal_get(SculptSession *ss, float normal[3]) SCULPT_vertex_normal_get(ss, SCULPT_active_vertex_get(ss), normal); } +MVert *SCULPT_mesh_deformed_mverts_get(SculptSession *ss) +{ + switch (BKE_pbvh_type(ss->pbvh)) { + case PBVH_FACES: + if (ss->shapekey_active || ss->deform_modifiers_active) { + return BKE_pbvh_get_verts(ss->pbvh); + } + return ss->mvert; + case PBVH_BMESH: + case PBVH_GRIDS: + return NULL; + } + return NULL; +} + float *SCULPT_brush_deform_target_vertex_co_get(SculptSession *ss, const int deform_target, PBVHVertexIter *iter) |