[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57476] trunk/blender/source/blender/ editors/space_image/image_ops.c: Bug fix #35749

Ton Roosendaal ton at blender.org
Sat Jun 15 17:39:20 CEST 2013


Revision: 57476
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57476
Author:   ton
Date:     2013-06-15 15:39:20 +0000 (Sat, 15 Jun 2013)
Log Message:
-----------
Bug fix #35749

Image Editor: "Replace Image" operator didn't refresh icon for image.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_image/image_ops.c

Modified: trunk/blender/source/blender/editors/space_image/image_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/image_ops.c	2013-06-15 15:10:21 UTC (rev 57475)
+++ trunk/blender/source/blender/editors/space_image/image_ops.c	2013-06-15 15:39:20 UTC (rev 57476)
@@ -48,6 +48,7 @@
 
 #include "BKE_colortools.h"
 #include "BKE_context.h"
+#include "BKE_icons.h"
 #include "BKE_image.h"
 #include "BKE_global.h"
 #include "BKE_library.h"
@@ -1122,6 +1123,7 @@
 	/* XXX unpackImage frees image buffers */
 	ED_preview_kill_jobs(C);
 	
+	BKE_icon_changed(BKE_icon_getid(&sima->image->id));
 	BKE_image_signal(sima->image, &sima->iuser, IMA_SIGNAL_RELOAD);
 	WM_event_add_notifier(C, NC_IMAGE | NA_EDITED, sima->image);
 




More information about the Bf-blender-cvs mailing list