[Bf-blender-cvs] [3c5113221d1] blender2.7: Fix missing image editor redraw when reloading image through API.

Brecht Van Lommel noreply at git.blender.org
Mon Mar 4 16:10:06 CET 2019


Commit: 3c5113221d1220fc51d78a0c431245df40bc6464
Author: Brecht Van Lommel
Date:   Mon Mar 4 16:04:24 2019 +0100
Branches: blender2.7
https://developer.blender.org/rB3c5113221d1220fc51d78a0c431245df40bc6464

Fix missing image editor redraw when reloading image through API.

===================================================================

M	source/blender/makesrna/intern/rna_image_api.c

===================================================================

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)



More information about the Bf-blender-cvs mailing list