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