diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-07-17 13:56:12 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-07-17 13:56:12 +0300 |
commit | 06505c5264539a255620c9c8898c5a879555b10e (patch) | |
tree | fd59c8e58d28a3e9205d1d8dd1a277f6cab53291 /source/blender/editors/object/object_transform.c | |
parent | d4246476d0da11ba8da17806f5235530d328ad0f (diff) |
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...
Diffstat (limited to 'source/blender/editors/object/object_transform.c')
-rw-r--r-- | source/blender/editors/object/object_transform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index 4d7d7df0d2f..47a3f79b0b4 100644 --- a/source/blender/editors/object/object_transform.c +++ b/source/blender/editors/object/object_transform.c @@ -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; |