Added missing update tag to recalculate data after permutating materials
authorGaia Clary <gaia.clary@machinimatrix.org>
Tue, 28 Apr 2015 08:52:19 +0000 (10:52 +0200)
committerGaia Clary <gaia.clary@machinimatrix.org>
Tue, 28 Apr 2015 08:52:19 +0000 (10:52 +0200)
source/blender/editors/render/render_shading.c

index 88f522a261501012dae356b492ad2b7692afc581..617364c7e7484bff6072074a819ecb89be82bc61 100644 (file)
@@ -422,6 +422,7 @@ static int material_slot_move_exec(bContext *C, wmOperator *op)
 
        MEM_freeN(slot_remap);
 
+       DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
        WM_event_add_notifier(C, NC_OBJECT | ND_DRAW | ND_DATA, ob);
 
        return OPERATOR_FINISHED;