Bugfix for own mistake in recent commit, halo render could crash
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 18 Feb 2008 13:05:27 +0000 (13:05 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 18 Feb 2008 13:05:27 +0000 (13:05 +0000)
with no material assigned.

source/blender/render/intern/source/convertblender.c

index f36c5ab655b4e1893a7b798dd42d281e45e16ebd..34f9fe13ef98b15ed0b02859e76ce71930e7cd90 100644 (file)
@@ -4335,7 +4335,7 @@ static int allow_render_dupli_instance(Render *re, DupliObject *dob, Object *obd
 
        if(totmaterial && material) {
                for(a= 0; a<*totmaterial; a++)
-                       if((*material)[a]->mode & MA_HALO)
+                       if((*material)[a] && (*material)[a]->mode & MA_HALO)
                                return 0;
        }