Fix: Build error from misplaced const in recent commit

This commit is contained in:
Hans Goudey 2024-03-20 10:09:06 -04:00
parent cb3975c045
commit 87de8109b7
1 changed files with 1 additions and 1 deletions

View File

@ -837,7 +837,7 @@ bool view3d_orbit_calc_center(bContext *C, float r_dyn_ofs[3])
const Object *ob_eval = base_eval->object;
if (const std::optional<Bounds<float3>> bounds = BKE_object_boundbox_get(ob_eval)) {
const float3 cent = math::midpoint(bounds->min, bounds->max);
float3 cent = math::midpoint(bounds->min, bounds->max);
mul_m4_v3(ob_eval->object_to_world, cent);
add_v3_v3(select_center, cent);
}