Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / object / object_transform.c
index 542b98d771f3305095e694637c0b644fb89f796a..75f6df3fb87a4b499486a351c98ed94d441d7a90 100644 (file)
@@ -924,8 +924,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;