Fix T47198: Broken UV/VCol in BI and Cycles with some degenerated faces - BI part.

Problem is actually similar in both engines - in some cases, we changed
'natural' quad splitting order to alternative one, without properkly 'notifying'
UV/VCol/other tessface data about it.

So code would use a 'wrong' triangle of UVs etc.

Fix for Cycles was committed by sergey as rBa6eae7339190d1.
This commit is contained in:
Bastien Montagne 2016-01-20 10:03:14 +01:00
parent a6eae73391
commit bf5ddb9728
Notes: blender-bot 2023-02-14 08:18:15 +01:00
Referenced by issue #47198, Cycles & BI have broken UVs in some degenerated quads cases
1 changed files with 2 additions and 0 deletions

View File

@ -4252,6 +4252,7 @@ static void check_non_flat_quads(ObjectRen *obr)
vlr->v2= v3;
vlr->v3= v4;
vlr->v4= NULL;
vlr->flag |= (R_DIVIDE_24 | R_FACE_SPLIT);
}
else {
sub_v3_v3v3(nor, v2->co, v3->co);
@ -4259,6 +4260,7 @@ static void check_non_flat_quads(ObjectRen *obr)
vlr->v2= v3;
vlr->v3= v4;
vlr->v4= NULL;
vlr->flag |= R_FACE_SPLIT;
}
else {
sub_v3_v3v3(nor, v3->co, v4->co);