diff options
Diffstat (limited to 'source/blender/render/intern/source/ray.c')
-rw-r--r-- | source/blender/render/intern/source/ray.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/ray.c b/source/blender/render/intern/source/ray.c index cb2004e901d..ca24f04a580 100644 --- a/source/blender/render/intern/source/ray.c +++ b/source/blender/render/intern/source/ray.c @@ -667,6 +667,10 @@ static int intersection2(VlakRen *vlr, float r0, float r1, float r2, float rx1, float m0, m1, m2, divdet, det, det1; float u1, v, u2; + /* happens for baking with non existing face */ + if(vlr->v1==NULL) + return 1; + v1= vlr->v1; v2= vlr->v2; if(vlr->v4) { |