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>2006-12-03 22:38:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2006-12-03 22:38:32 +0300
commit2d87c36efa87db033b9393e42df764d68bc1a812 (patch)
tree1efee60bf1bedcb64fd179a0e8400e92bf7ba37e /source/blender/src/editface.c
parentcbd84b26f48d4d913ee170002de530e6aa6cc40f (diff)
Copy vcols wasnt working me->mcol[a] needs to be me->mcol[a*4]
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r--source/blender/src/editface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c
index 0d15318b094..fa40d210303 100644
--- a/source/blender/src/editface.c
+++ b/source/blender/src/editface.c
@@ -584,21 +584,21 @@ MTFace *get_active_tface(MCol **mcol)
for(a=0, tf=me->mtface; a < me->totface; a++, tf++) {
if(tf->flag & TF_ACTIVE) {
- if(mcol) *mcol = (me->mcol)? &me->mcol[a]: NULL;
+ if(mcol) *mcol = (me->mcol)? &me->mcol[a*4]: NULL;
return tf;
}
}
for(a=0, tf=me->mtface; a < me->totface; a++, tf++) {
if(tf->flag & TF_SELECT) {
- if(mcol) *mcol = (me->mcol)? &me->mcol[a]: NULL;
+ if(mcol) *mcol = (me->mcol)? &me->mcol[a*4]: NULL;
return tf;
}
}
for(a=0, tf=me->mtface; a < me->totface; a++, tf++) {
if((tf->flag & TF_HIDE)==0) {
- if(mcol) *mcol = (me->mcol)? &me->mcol[a]: NULL;
+ if(mcol) *mcol = (me->mcol)? &me->mcol[a*4]: NULL;
return tf;
}
}