Fix #147472: "Cursor to Selected" on Edit Bone causes assert

Fix assert when using Cursor to Selected on armatures which is
documented to require an evaluated object.

Ref !147526
This commit is contained in:
tariqsulley
2025-10-07 10:25:01 +00:00
committed by Campbell Barton
parent 68fecf9fa9
commit fb035bfef6

View File

@@ -929,7 +929,8 @@ static bool snap_curs_to_sel_ex(bContext *C, const int pivot_point, float r_curs
}
if (ED_transverts_check_obedit(obedit)) {
ED_transverts_create_from_obedit(&tvs, obedit, TM_ALL_JOINTS | TM_SKIP_HANDLES);
const Object *obedit_eval = DEG_get_evaluated(depsgraph, obedit);
ED_transverts_create_from_obedit(&tvs, obedit_eval, TM_ALL_JOINTS | TM_SKIP_HANDLES);
}
count += tvs.transverts_tot;