Bug in new option to assign materials right away to a face; it

didn't make a correct new slot in a Mesh (ADD NEW did, but not browsing
a material that didn't exisit in one of slots yet)
This commit is contained in:
Ton Roosendaal
2007-11-29 13:57:41 +00:00
parent 19f6bab818
commit fbadcf1c7b

View File

@@ -483,7 +483,7 @@ void do_common_editbuts(unsigned short event) // old name, is a mix of object an
if(ma) {
ob->actcol= find_material_index(ob, ma);
if(ob->actcol==0) {
assign_material(ob, ma, ob->totcol);
assign_material(ob, ma, ob->totcol+1);
ob->actcol= ob->totcol;
}
}