Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-06-26 13:26:10 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-06-26 17:00:04 +0300
commitc07f2bc89196ea449a2875634eb85efa45733fb5 (patch)
treeff6a8417afa09936872b50020e678ec156ebe79a /source
parent43d27095a3d6d0d4c743c68581eab2b4c86939d4 (diff)
Fix T55628: Crash when creating new material slots
We need to update the geometry when resizing the object material slots.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/material.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 0d41385a39c..ab8c8695495 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -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);
}