diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-12-02 14:57:38 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-12-02 14:57:52 +0300 |
commit | ebfea8c2bb004f461ee186138e3ce25027296788 (patch) | |
tree | 20e5ae95358fa55a3cfbe56b1bd8e0a1f5898d77 /source/blender/makesrna/intern/rna_texture.c | |
parent | 71c624dcd8609b5be8f76aa9d78072e91c8b1538 (diff) |
Fix texture previews not updating when parameters are changed.
Maybe there is a more correct way, but this works for now.
Diffstat (limited to 'source/blender/makesrna/intern/rna_texture.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_texture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c index e9ef4bf7a8c..753870335ff 100644 --- a/source/blender/makesrna/intern/rna_texture.c +++ b/source/blender/makesrna/intern/rna_texture.c @@ -163,6 +163,7 @@ static void rna_Texture_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *pt Tex *tex = ptr->id.data; DEG_id_tag_update(&tex->id, 0); + DEG_id_tag_update(&tex->id, DEG_TAG_EDITORS_UPDATE); WM_main_add_notifier(NC_TEXTURE, tex); WM_main_add_notifier(NC_MATERIAL | ND_SHADING_DRAW, NULL); } @@ -190,6 +191,7 @@ static void rna_Texture_nodes_update(Main *UNUSED(bmain), Scene *UNUSED(scene), Tex *tex = ptr->id.data; DEG_id_tag_update(&tex->id, 0); + DEG_id_tag_update(&tex->id, DEG_TAG_EDITORS_UPDATE); WM_main_add_notifier(NC_TEXTURE | ND_NODES, tex); } |