Fix: invalid center calculation for 3D text cursor

Regression in [0] caused out of bounds read from `EditFont::textcurs`.

[0]: 3f10ba244a
This commit is contained in:
Campbell Barton
2025-08-26 16:38:46 +10:00
parent 001a2b3f4d
commit b244e7ec41

View File

@@ -852,7 +852,7 @@ bool view3d_orbit_calc_center(bContext *C, float r_dyn_ofs[3])
ofs = float3(0);
for (int i = 0; i < 4; i++) {
ofs += ef->textcurs[i];
add_v2_v2(ofs, ef->textcurs[i]);
}
ofs *= 0.25f;