Copy vcols wasnt working me->mcol[a] needs to be me->mcol[a*4]

This commit is contained in:
2006-12-03 19:38:32 +00:00
parent cbd84b26f4
commit 2d87c36efa
4 changed files with 7 additions and 7 deletions

View File

@@ -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;
}
}