Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-04-28 21:26:30 +0400
committerTon Roosendaal <ton@blender.org>2004-04-28 21:26:30 +0400
commit07b6ca41c856211926f04b267e221b71f5d259b0 (patch)
treef352501b66a88c3bea3415c3154b5b0a491dd63c /source/blender/src/drawmesh.c
parent83b17b9f4daad5f079018872a966ac7974653d1c (diff)
Bug fix 1202
Sample file showed UV-textured Subsurf, in 'Potato' texture view. When separating part of it in editmode, a null pointer was referenced in drawing code.
Diffstat (limited to 'source/blender/src/drawmesh.c')
-rw-r--r--source/blender/src/drawmesh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/drawmesh.c b/source/blender/src/drawmesh.c
index 6ce53b4adaf..873b3c9ab9f 100644
--- a/source/blender/src/drawmesh.c
+++ b/source/blender/src/drawmesh.c
@@ -855,6 +855,8 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
mface= me->mface;
tface= me->tface;
}
+ // tface can be NULL
+ if(tface==NULL) return;
for (a=0; a<totface; a++, tface++) {
int v1idx, v2idx, v3idx, v4idx, mf_smooth, matnr, badtex;