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-02-28 17:58:04 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-02-28 18:53:34 +0300
commit793135e190c7450d30451617e9b8ae2d5ecec94a (patch)
treeb164ce4130357bb33aaf4cf4c86f235ab772ff4f /source/blender/blenkernel/intern/pbvh.c
parentbc2ce31d794096d0785b469752451cc035688dcc (diff)
Fix wrong coordinates being read when using the sculpt API
The coordinates should be read from the PBVH when using deform modifiers. This is needed for the cloth brush to work with subdivisions, as it reads the vertex coordinates using this function when building and updating the constraints. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6967
Diffstat (limited to 'source/blender/blenkernel/intern/pbvh.c')
-rw-r--r--source/blender/blenkernel/intern/pbvh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index efe13fc8817..95e7218a920 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -2885,3 +2885,9 @@ void BKE_pbvh_parallel_range_settings(PBVHParallelSettings *settings,
memset(settings, 0, sizeof(*settings));
settings->use_threading = use_threading && totnode > 1;
}
+
+MVert *BKE_pbvh_get_verts(const PBVH *bvh)
+{
+ BLI_assert(bvh->type == PBVH_FACES);
+ return bvh->verts;
+}