[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26929] trunk/blender/source/blender/ makesrna/intern/rna_image.c: Fix #21073: toggling image premultiply did not reload image.

Brecht Van Lommel brecht at blender.org
Mon Feb 15 13:59:58 CET 2010


Revision: 26929
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26929
Author:   blendix
Date:     2010-02-15 13:59:58 +0100 (Mon, 15 Feb 2010)

Log Message:
-----------
Fix #21073: toggling image premultiply did not reload image.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_image.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_image.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_image.c	2010-02-15 12:57:16 UTC (rev 26928)
+++ trunk/blender/source/blender/makesrna/intern/rna_image.c	2010-02-15 12:59:58 UTC (rev 26929)
@@ -105,7 +105,6 @@
 {
 	Image *ima= ptr->id.data;
 	BKE_image_signal(ima, NULL, IMA_SIGNAL_RELOAD);
-	printf("reload %p\n", ima);
 }
 
 static void rna_Image_generated_update(Main *bmain, Scene *scene, PointerRNA *ptr)
@@ -317,7 +316,7 @@
 	prop= RNA_def_property(srna, "premultiply", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", IMA_DO_PREMUL);
 	RNA_def_property_ui_text(prop, "Premultiply", "Convert RGB from key alpha to premultiplied alpha");
-	RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL);
+	RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, "rna_Image_reload_update");
 
 	prop= RNA_def_property(srna, "dirty", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_funcs(prop, "rna_Image_dirty_get", NULL);





More information about the Bf-blender-cvs mailing list