Fix multires cursor not displaying the active vertex

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D6026
This commit is contained in:
Pablo Dobarro 2019-10-09 00:55:56 +02:00
parent 06c5520bda
commit e79fc33fda
1 changed files with 1 additions and 7 deletions

View File

@ -6591,13 +6591,7 @@ bool sculpt_cursor_geometry_info_update(bContext *C,
/* Update the active vertex of the SculptSession */
ss->active_vertex_index = srd.active_vertex_index;
if (!ss->multires) {
copy_v3_v3(out->active_vertex_co, sculpt_active_vertex_co_get(ss));
}
else {
zero_v3(out->active_vertex_co);
}
copy_v3_v3(out->active_vertex_co, sculpt_active_vertex_co_get(ss));
copy_v3_v3(out->location, ray_normal);
mul_v3_fl(out->location, srd.depth);