Revision: 48856
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48856
Author:   nazgul
Date:     2012-07-12 09:56:18 +0000 (Thu, 12 Jul 2012)
Log Message:
-----------
Fix #32050: UV map and game engine property cause crash

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/drawmesh.c

Modified: trunk/blender/source/blender/editors/space_view3d/drawmesh.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawmesh.c        
2012-07-12 09:24:17 UTC (rev 48855)
+++ trunk/blender/source/blender/editors/space_view3d/drawmesh.c        
2012-07-12 09:56:18 UTC (rev 48856)
@@ -640,7 +640,7 @@
                short matnr = mp->mat_nr;
                int mf_smooth = mp->flag & ME_SMOOTH;
                Material *mat = me->mat[matnr];
-               int mode = mat->game.flag;
+               int mode = mat ? mat->game.flag : GEMAT_INVISIBLE;
 
                if (!(mode & GEMAT_INVISIBLE) && (mode & GEMAT_TEXT) && 
mp->totloop >= 3) {
                        /* get the polygon as a tri/quad */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to