diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-01-17 00:59:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-17 00:59:02 +0300 |
commit | e57ee5934a30e87410b7544ba8d18054881b2c00 (patch) | |
tree | b111017497b1a074462f9d9e8a6d80c3250499d7 /source/blender/editors/render/render_shading.c | |
parent | dfb63653f4f084ec8c8b061dd0f33769b16b3b91 (diff) |
Fix T60261: Crash pasting a material without a nodetree
Diffstat (limited to 'source/blender/editors/render/render_shading.c')
-rw-r--r-- | source/blender/editors/render/render_shading.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c index 587d2d91029..bc92a45391c 100644 --- a/source/blender/editors/render/render_shading.c +++ b/source/blender/editors/render/render_shading.c @@ -1782,6 +1782,7 @@ static int paste_material_exec(bContext *C, wmOperator *UNUSED(op)) paste_matcopybuf(CTX_data_main(C), ma); + DEG_id_tag_update(&ma->id, ID_RECALC_COPY_ON_WRITE); WM_event_add_notifier(C, NC_MATERIAL | ND_SHADING_LINKS, ma); return OPERATOR_FINISHED; |