Sculpt: Fix crash hovering mouse onto multire surface
The check around function which is only supposed to be used for
non-multires case was gone after aea8c0102a.
This commit is contained in:
@@ -6371,7 +6371,13 @@ bool sculpt_cursor_geometry_info_update(bContext *C,
|
|||||||
/* Update the active vertex of the SculptSession */
|
/* Update the active vertex of the SculptSession */
|
||||||
ss->active_vertex_index = srd.active_vertex_index;
|
ss->active_vertex_index = srd.active_vertex_index;
|
||||||
|
|
||||||
copy_v3_v3(out->active_vertex_co, sculpt_vertex_co_get(ss, srd.active_vertex_index));
|
if (!ss->multires) {
|
||||||
|
copy_v3_v3(out->active_vertex_co, sculpt_vertex_co_get(ss, srd.active_vertex_index));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
zero_v3(out->active_vertex_co);
|
||||||
|
}
|
||||||
|
|
||||||
copy_v3_v3(out->location, ray_normal);
|
copy_v3_v3(out->location, ray_normal);
|
||||||
mul_v3_fl(out->location, srd.depth);
|
mul_v3_fl(out->location, srd.depth);
|
||||||
add_v3_v3(out->location, ray_start);
|
add_v3_v3(out->location, ray_start);
|
||||||
|
|||||||
Reference in New Issue
Block a user