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:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user