diff --git a/source/blender/editors/sculpt_paint/sculpt.cc b/source/blender/editors/sculpt_paint/sculpt.cc index 7586bf496cc..9bf6fef2dca 100644 --- a/source/blender/editors/sculpt_paint/sculpt.cc +++ b/source/blender/editors/sculpt_paint/sculpt.cc @@ -4681,7 +4681,6 @@ bool cursor_geometry_info_update(bContext *C, if (!pbvh || !vc.rv3d || !BKE_base_is_visible(v3d, base)) { out->location = float3(0.0f); out->normal = float3(0.0f); - out->active_vertex_co = float3(0.0f); ss.clear_active_elements(false); return false; } @@ -4727,14 +4726,12 @@ bool cursor_geometry_info_update(bContext *C, if (!srd.hit) { out->location = float3(0.0f); out->normal = float3(0.0f); - out->active_vertex_co = float3(0.0f); ss.clear_active_elements(true); return false; } /* Update the active vertex of the SculptSession. */ ss.set_active_vert(srd.active_vertex); - out->active_vertex_co = ss.active_vert_position(*depsgraph, ob); switch (pbvh->type()) { case bke::pbvh::Type::Mesh: diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.hh b/source/blender/editors/sculpt_paint/sculpt_intern.hh index 43f93df260a..77286e62331 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.hh +++ b/source/blender/editors/sculpt_paint/sculpt_intern.hh @@ -483,7 +483,6 @@ bool stroke_get_location_bvh(bContext *C, float out[3], const float mval[2], boo struct CursorGeometryInfo { float3 location; float3 normal; - float3 active_vertex_co; }; /**