svn merge ^/trunk/blender -r46300:46330
[blender.git] / source / blender / editors / uvedit / uvedit_unwrap_ops.c
index f9db8b5423bef67eef6b95cdc55ccf36db27074b..f38c33fa75042f4663ebac634f7ff7416e064f92 100644 (file)
@@ -1027,7 +1027,7 @@ static void correct_uv_aspect(BMEditMesh *em)
                        
                        BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) {
                                luv = CustomData_bmesh_get(&em->bm->ldata, l->head.data, CD_MLOOPUV);
                        
                        BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) {
                                luv = CustomData_bmesh_get(&em->bm->ldata, l->head.data, CD_MLOOPUV);
-                               luv->uv[0] = ((luv->uv[0] - 0.5f) * scale) + 0.5f;
+                               luv->uv[0] = ((luv->uv[0] - 0.5) * scale) + 0.5;
                        }
                }
        }
                        }
                }
        }
@@ -1040,7 +1040,7 @@ static void correct_uv_aspect(BMEditMesh *em)
                        
                        BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) {
                                luv = CustomData_bmesh_get(&em->bm->ldata, l->head.data, CD_MLOOPUV);
                        
                        BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) {
                                luv = CustomData_bmesh_get(&em->bm->ldata, l->head.data, CD_MLOOPUV);
-                               luv->uv[1] = ((luv->uv[1] - 0.5f) * scale) + 0.5f;
+                               luv->uv[1] = ((luv->uv[1] - 0.5) * scale) + 0.5;
                        }
                }
        }
                        }
                }
        }