new parameter in assign_material() to specify where material shall be assigned: object, obdata, by userpref(default) (as discussed with ideasman_42)
This commit is contained in:
@@ -632,7 +632,7 @@ int NewBooleanMesh(Scene *scene, Base *base, Base *base_select, int int_op_type)
|
||||
|
||||
/* add materials to object */
|
||||
for (a = 0; a < totmat; a++)
|
||||
assign_material(ob_new, mat[a], a + 1);
|
||||
assign_material(ob_new, mat[a], a + 1, BKE_MAT_ASSIGN_USERPREF);
|
||||
|
||||
MEM_freeN(mat);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user