Fix T39925: Set Origin to Geometry on a new text object moves the origin away from the object

No need to take into account font size here...
This commit is contained in:
Bastien Montagne 2017-07-17 12:56:12 +02:00
parent d4246476d0
commit 06505c5264
Notes: blender-bot 2023-02-14 10:44:51 +01:00
Referenced by issue #39925, Set Origin to Geometry on a new text object moves the origin away from the object
1 changed files with 2 additions and 2 deletions

View File

@ -923,8 +923,8 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
cent[2] = 0.0f;
cu->xof = cu->xof - (cent[0] / cu->fsize);
cu->yof = cu->yof - (cent[1] / cu->fsize);
cu->xof = cu->xof - cent[0];
cu->yof = cu->yof - cent[1];
tot_change++;
cu->id.tag |= LIB_TAG_DOIT;