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