Fix T55628: Crash when creating new material slots

We need to update the geometry when resizing the object material slots.
This commit is contained in:
Dalai Felinto
2018-06-26 12:26:10 +02:00
parent 43d27095a3
commit c07f2bc891

View File

@@ -537,7 +537,7 @@ void BKE_material_resize_object(Main *bmain, Object *ob, const short totcol, boo
if (ob->totcol && ob->actcol == 0) ob->actcol = 1;
if (ob->actcol > ob->totcol) ob->actcol = ob->totcol;
DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE | DEG_TAG_GEOMETRY);
DEG_relations_tag_update(bmain);
}