[Bf-blender-cvs] [ed59c32b0c4] master: Fix bug in nearest_vertex_get_finalize
Pablo Dobarro
noreply at git.blender.org
Wed Oct 2 15:53:00 CEST 2019
Commit: ed59c32b0c49bfd5fb608a54a99f0a0b2fe19c68
Author: Pablo Dobarro
Date: Wed Oct 2 00:57:25 2019 +0200
Branches: master
https://developer.blender.org/rBed59c32b0c49bfd5fb608a54a99f0a0b2fe19c68
Fix bug in nearest_vertex_get_finalize
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D5965
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
===================================================================
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;
More information about the Bf-blender-cvs
mailing list