OBJECT_OT_drop_named_material -- missing notifier for material panel UI update
authorDan Eicher <dan@eu.phorio.us>
Sat, 9 Jun 2012 21:43:22 +0000 (21:43 +0000)
committerDan Eicher <dan@eu.phorio.us>
Sat, 9 Jun 2012 21:43:22 +0000 (21:43 +0000)
source/blender/editors/object/object_relations.c

index 85b9d78c657d61506d25e7f13aee19b12b11ba91..fc0aa39e733c2cb828e7556ca824ff7efde48fd5 100644 (file)
@@ -1929,6 +1929,7 @@ static int drop_named_material_invoke(bContext *C, wmOperator *op, wmEvent *even
        
        DAG_ids_flush_update(bmain, 0);
        WM_event_add_notifier(C, NC_SPACE | ND_SPACE_VIEW3D, CTX_wm_view3d(C));
+       WM_event_add_notifier(C, NC_MATERIAL | ND_SHADING, ma);
        
        return OPERATOR_FINISHED;
 }