Cleanup: Remove unused active_vert_co from CursorGeometryInfo

Usage of the field was removed in 5f51438185

Pull Request: https://projects.blender.org/blender/blender/pulls/141923
This commit is contained in:
Sean Kim
2025-07-15 19:56:46 +02:00
committed by Sean Kim
parent e1d46c1570
commit ae9a3f28d5
2 changed files with 0 additions and 4 deletions

View File

@@ -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:

View File

@@ -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;
};
/**