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>2019-10-02 01:57:25 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-10-02 16:55:11 +0300
commited59c32b0c49bfd5fb608a54a99f0a0b2fe19c68 (patch)
tree455d4bad334a3514d37b0105d3bd74128b5351a7 /source/blender/editors/sculpt_paint/sculpt.c
parentddd40985e7dfe026323dede900fa2417fde225c0 (diff)
Fix bug in nearest_vertex_get_finalize
Reviewed By: brecht Differential Revision: https://developer.blender.org/D5965
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index b9d621fc1fb..80be8143630 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -387,6 +387,7 @@ static void nearest_vertex_get_finalize(void *__restrict userdata, void *__restr
NearestVertexTLSData *nvtd = tls;
if (data->nearest_vertex_index == -1) {
data->nearest_vertex_index = nvtd->nearest_vertex_index;
+ data->nearest_vertex_distance_squared = nvtd->nearest_vertex_distance_squared;
}
else if (nvtd->nearest_vertex_distance_squared < data->nearest_vertex_distance_squared) {
data->nearest_vertex_index = nvtd->nearest_vertex_index;