Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-04 18:04:24 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-04 18:06:57 +0300
commit3c5113221d1220fc51d78a0c431245df40bc6464 (patch)
tree787860278b16996bf0dc51d9145006261053877b /source/blender/makesrna/intern/rna_image_api.c
parente53db8342a9793954138173d8e1fdbcaa41d0009 (diff)
Fix missing image editor redraw when reloading image through API.
Diffstat (limited to 'source/blender/makesrna/intern/rna_image_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_image_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_image_api.c b/source/blender/makesrna/intern/rna_image_api.c
index d96ae42515d..8f7b4b19b2b 100644
--- a/source/blender/makesrna/intern/rna_image_api.c
+++ b/source/blender/makesrna/intern/rna_image_api.c
@@ -190,6 +190,7 @@ static void rna_Image_unpack(Image *image, Main *bmain, ReportList *reports, int
static void rna_Image_reload(Image *image, Main *bmain)
{
BKE_image_signal(bmain, image, NULL, IMA_SIGNAL_RELOAD);
+ WM_main_add_notifier(NC_IMAGE | NA_EDITED, image);
}
static void rna_Image_update(Image *image, ReportList *reports)