- error in shader buttons... when no material on object, it draws the

tabs really weird...
This commit is contained in:
2003-10-11 22:32:09 +00:00
parent 0ce9abf41d
commit 06f29795df

View File

@@ -492,17 +492,11 @@ void material_panel_material(Object *ob, Material *ma)
but= uiDefBut(block, TEX, B_IDNAME, str, 8,174,115,20, id->name+2, 0.0, 18.0, 0, 0, "Show the block the material is linked to");
uiButSetFunc(but, test_idbutton_cb, id->name, NULL);
if(ob->totcol==0) {
uiDrawBlock(block);
return;
}
if(ob->totcol==0) return;
ma= give_current_material(ob, ob->actcol);
if(ma==0) return;
ma= give_current_material(ob, ob->actcol);
if(ma==0) {
uiDrawBlock(block);
return;
}
uiSetButLock(ma->id.lib!=0, "Can't edit library data");