[Bf-blender-cvs] [5c6ec16] master: Added missing update tag to recalculate data after permutating materials

Gaia Clary noreply at git.blender.org
Tue Apr 28 10:52:57 CEST 2015


Commit: 5c6ec169ccb257a0f1d7f0aafa83f3d5ff866ba1
Author: Gaia Clary
Date:   Tue Apr 28 10:52:19 2015 +0200
Branches: master
https://developer.blender.org/rB5c6ec169ccb257a0f1d7f0aafa83f3d5ff866ba1

Added missing update tag to recalculate data after permutating materials

===================================================================

M	source/blender/editors/render/render_shading.c

===================================================================

diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c
index 88f522a..617364c 100644
--- a/source/blender/editors/render/render_shading.c
+++ b/source/blender/editors/render/render_shading.c
@@ -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;




More information about the Bf-blender-cvs mailing list