Fix: Crash in curves edit mode multi-object selection pick

The code was always using the deformed positions from the active object
rather than from the object currently being processed.
This commit is contained in:
Hans Goudey
2024-11-06 12:52:19 +01:00
parent 3d457fa5d4
commit 5774441ee8

View File

@@ -3103,7 +3103,7 @@ static bool ed_curves_select_pick(bContext &C, const int mval[2], const SelectPi
Object &curves_ob = *base->object;
Curves &curves_id = *static_cast<Curves *>(curves_ob.data);
bke::crazyspace::GeometryDeformation deformation =
bke::crazyspace::get_evaluated_curves_deformation(*vc.depsgraph, *vc.obedit);
bke::crazyspace::get_evaluated_curves_deformation(*vc.depsgraph, curves_ob);
const bke::CurvesGeometry &curves = curves_id.geometry.wrap();
const float4x4 projection = ED_view3d_ob_project_mat_get(vc.rv3d, &curves_ob);
const IndexMask elements(curves.attributes().domain_size(selection_domain));