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

Ton Roosendaal ton at blender.org
Sat Jan 12 13:46:28 CET 2013


Revision: 53740
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53740
Author:   ton
Date:     2013-01-12 12:46:25 +0000 (Sat, 12 Jan 2013)
Log Message:
-----------
Bug fix #33842

Old bug:

Image Editor, Generated Image, use "Replace" operator failed, was mising correct
signal to handle type change to "From File".

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-01-12 11:59:22 UTC (rev 53739)
+++ trunk/blender/source/blender/editors/space_image/image_ops.c	2013-01-12 12:46:25 UTC (rev 53740)
@@ -1109,6 +1109,11 @@
 	/* we cant do much if the str is longer then FILE_MAX :/ */
 	BLI_strncpy(sima->image->name, str, sizeof(sima->image->name));
 
+	if (sima->image->source == IMA_SRC_GENERATED) {
+		sima->image->source = IMA_SRC_FILE;
+		BKE_image_signal(sima->image, &sima->iuser, IMA_SIGNAL_SRC_CHANGE);
+	}
+	
 	if (BLI_testextensie_array(str, imb_ext_movie))
 		sima->image->source = IMA_SRC_MOVIE;
 	else




More information about the Bf-blender-cvs mailing list