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-22 20:38:08 +0300
committerTon Roosendaal <ton@blender.org>2010-12-22 20:38:08 +0300
commit0db7bdf00a387ef53085fffdc3367a812202dc67 (patch)
tree9581909ffa539774461b1729b54e89c38b314e09 /source/blender/editors/render
parentff7d106da430dae877a365d6728e7dbea482aea3 (diff)
IRC fix: removing material slot from Object didn't refresh 3D correct.
Missing ID tag update.
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r--source/blender/editors/render/render_shading.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c
index 3f7e30f9e41..24b521dcabc 100644
--- a/source/blender/editors/render/render_shading.c
+++ b/source/blender/editors/render/render_shading.c
@@ -296,6 +296,7 @@ static int material_slot_remove_exec(bContext *C, wmOperator *op)
}
object_remove_material_slot(ob);
+ DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
WM_event_add_notifier(C, NC_OBJECT|ND_DRAW, ob);
WM_event_add_notifier(C, NC_OBJECT|ND_OB_SHADING, ob);