diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-01-20 12:03:14 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-01-20 12:03:14 +0300 |
commit | bf5ddb9728ef3eeed680399ab4d0f7aa59fe1fa4 (patch) | |
tree | 08d207068df384362c999aa6b6dcebb04aff0059 /source/blender/render | |
parent | a6eae7339190d1fef84f248b596ddbcc7e17a6b0 (diff) |
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.
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/convertblender.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c index 1cd8e25b1aa..1e5e9025dcd 100644 --- a/source/blender/render/intern/source/convertblender.c +++ b/source/blender/render/intern/source/convertblender.c @@ -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); |