Merged changes in the trunk up to revision 52690.
[blender.git] / source / blender / editors / render / render_shading.c
index ebbdc90ab04a9f5acf5fa08b9d47af19d75527ca..34677650f80b2390ca52c712dd356a5510a5dbda 100644 (file)
@@ -1480,7 +1480,7 @@ static int paste_material_exec(bContext *C, wmOperator *UNUSED(op))
 
        paste_matcopybuf(ma);
 
-       WM_event_add_notifier(C, NC_MATERIAL | ND_SHADING_DRAW, ma);
+       WM_event_add_notifier(C, NC_MATERIAL | ND_SHADING_LINKS, ma);
 
        return OPERATOR_FINISHED;
 }
@@ -1642,7 +1642,7 @@ static int paste_mtex_exec(bContext *C, wmOperator *UNUSED(op))
 
        paste_mtex_copybuf(id);
 
-       WM_event_add_notifier(C, NC_TEXTURE | ND_SHADING_DRAW, NULL);
+       WM_event_add_notifier(C, NC_TEXTURE | ND_SHADING_LINKS, NULL);
 
        return OPERATOR_FINISHED;
 }