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
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2010-12-11 19:06:25 +0300
committerTon Roosendaal <ton@blender.org>2010-12-11 19:06:25 +0300
commit1d1c8bb21bc3435cad337da9cafd5817d82fe503 (patch)
treeb92e66a25033ecabd9c2f5d01ad644761c34d603 /source/blender/makesrna/intern/rna_object.c
parent63a508408d63c2a8853b6b0eac374c348c4c8ed1 (diff)
Small fix:
Material Properties: adding new materials didn't create a new preview icon for it.
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r--source/blender/makesrna/intern/rna_object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 289f3de2f2c..57f332a4248 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -583,6 +583,7 @@ static void rna_Object_active_material_set(PointerRNA *ptr, PointerRNA value)
{
Object *ob= (Object*)ptr->id.data;
+ DAG_id_tag_update(value.data, 0);
assign_material(ob, value.data, ob->actcol);
}