diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-03 22:38:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-03 22:38:32 +0300 |
commit | 2d87c36efa87db033b9393e42df764d68bc1a812 (patch) | |
tree | 1efee60bf1bedcb64fd179a0e8400e92bf7ba37e /source/blender/src/editface.c | |
parent | cbd84b26f48d4d913ee170002de530e6aa6cc40f (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.c | 6 |
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; } } |