From f99099109fbe109b18c58ed6ae2d076a99f6ddc8 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 25 May 2004 19:06:48 +0000 Subject: Fixed a potential bug in the uv editor transform function, a check if the tface might be only an edge was missing in one of the loops. Fix a crash that would sometimes happen when clicking the texture painting button in the image window header. Made headerbuttons_packdummy a static variable again. The uiDefBut call for the texture painting button stores a reference to it, so it must be kept in memory. --- source/blender/src/editsima.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/src/editsima.c') diff --git a/source/blender/src/editsima.c b/source/blender/src/editsima.c index 7eaeaf3ca1d..3bc6dff4b90 100644 --- a/source/blender/src/editsima.c +++ b/source/blender/src/editsima.c @@ -378,7 +378,7 @@ void transform_tface_uv(int mode) tface= me->tface; mface= me->mface; for(a=me->totface; a>0; a--, tface++, mface++) { - if(tface->flag & TF_SELECT) { + if(mface->v3 && tface->flag & TF_SELECT) { if(tface->flag & TF_SEL1) tot++; if(tface->flag & TF_SEL2) tot++; if(tface->flag & TF_SEL3) tot++; -- cgit v1.2.3