Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-05 17:25:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-05 17:25:42 +0400
commitbaa843d0d3f9936f01bb569f3512972daaadd070 (patch)
tree1c784a2b8ab7fe0f9ddc3795104272f8ad2d684f /source/blender/editors/uvedit/uvedit_draw.c
parent543fb27fd0a54287b32f3d2c0066c10a120a596d (diff)
Code Cleanup: use vector functions for copying / adding UV's
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_draw.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_draw.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c
index 9e2a2abe837..b081941e71b 100644
--- a/source/blender/editors/uvedit/uvedit_draw.c
+++ b/source/blender/editors/uvedit/uvedit_draw.c
@@ -194,8 +194,7 @@ static void draw_uvs_stretch(SpaceImage *sima, Scene *scene, BMEditMesh *em, MTe
BM_ITER(l, &liter, em->bm, BM_LOOPS_OF_FACE, efa) {
luv= CustomData_bmesh_get(&em->bm->ldata, l->head.data, CD_MLOOPUV);
- tf_uvorig[i][0] = luv->uv[0];
- tf_uvorig[i][1] = luv->uv[1];
+ copy_v2_v2(tf_uvorig[i], luv->uv);
i++;
}
@@ -245,8 +244,7 @@ static void draw_uvs_stretch(SpaceImage *sima, Scene *scene, BMEditMesh *em, MTe
BM_ITER(l, &liter, em->bm, BM_LOOPS_OF_FACE, efa) {
luv= CustomData_bmesh_get(&em->bm->ldata, l->head.data, CD_MLOOPUV);
- tf_uvorig[i][0] = luv->uv[0];
- tf_uvorig[i][1] = luv->uv[1];
+ copy_v2_v2(tf_uvorig[i], luv->uv);
i++;
}