[Bf-blender-cvs] [e1de206] ui-preview-buttons: Added missing update tag to recalculate data after permutating materials

Gaia Clary noreply at git.blender.org
Tue Apr 28 19:12:50 CEST 2015


Commit: e1de2065888bf9a8c30af36a025a8805a2867fc6
Author: Gaia Clary
Date:   Tue Apr 28 10:52:19 2015 +0200
Branches: ui-preview-buttons
https://developer.blender.org/rBe1de2065888bf9a8c30af36a025a8805a2867fc6

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