Silly: when using vector blur on a curve or text object, without having a
material assigned to it, the default material didn't get initialized OK
for vector blur, causing random streaks.
This commit is contained in:
2006-06-20 15:44:25 +00:00
parent e491e73db6
commit f7d38ee181
2 changed files with 10 additions and 11 deletions

View File

@@ -393,11 +393,11 @@ Material *give_current_material(Object *ob, int act)
{
Material ***matarar, *ma;
if(ob==0) return 0;
if(ob->totcol==0) return 0;
if(ob==NULL) return 0;
if(ob->totcol==NULL) return 0;
if(act>ob->totcol) act= ob->totcol;
else if(act==0) act= 1;
else if(act<=0) act= 1;
if( BTST(ob->colbits, act-1) ) { /* in object */
ma= ob->mat[act-1];