[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21238] branches/soc-2009-yukishiro/source /blender: fix hdr save bug

Jingyuan Huang jingyuan.huang at gmail.com
Mon Jun 29 21:00:38 CEST 2009


Revision: 21238
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21238
Author:   yukishiro
Date:     2009-06-29 21:00:38 +0200 (Mon, 29 Jun 2009)

Log Message:
-----------
fix hdr save bug

Modified Paths:
--------------
    branches/soc-2009-yukishiro/source/blender/blenkernel/intern/lightenv.c
    branches/soc-2009-yukishiro/source/blender/editors/sculpt_paint/paint_light.c

Modified: branches/soc-2009-yukishiro/source/blender/blenkernel/intern/lightenv.c
===================================================================
--- branches/soc-2009-yukishiro/source/blender/blenkernel/intern/lightenv.c	2009-06-29 18:19:53 UTC (rev 21237)
+++ branches/soc-2009-yukishiro/source/blender/blenkernel/intern/lightenv.c	2009-06-29 19:00:38 UTC (rev 21238)
@@ -100,6 +100,7 @@
 {
 	ImBuf * ibuf= IMB_allocImBuf(env->output_width, env->output_height, 32, IB_rectfloat, 0);
 	SH_reconstructLightProbe(env, ibuf);
+	ibuf->ftype |= RADHDR; // must set to the correct file type
 	IMB_saveiff(ibuf, image_name, 0);
 	IMB_freeImBuf(ibuf);
 }

Modified: branches/soc-2009-yukishiro/source/blender/editors/sculpt_paint/paint_light.c
===================================================================
--- branches/soc-2009-yukishiro/source/blender/editors/sculpt_paint/paint_light.c	2009-06-29 18:19:53 UTC (rev 21237)
+++ branches/soc-2009-yukishiro/source/blender/editors/sculpt_paint/paint_light.c	2009-06-29 19:00:38 UTC (rev 21238)
@@ -797,7 +797,7 @@
 	if(RNA_property_is_set(op->ptr, "filename"))
 		return light_paint_save_exec(C, op);
 
-	RNA_string_set(op->ptr, "filename", "");
+	RNA_string_set(op->ptr, "filename", "untitled.hdr");
 	WM_event_add_fileselect(C, op); 
 	return OPERATOR_RUNNING_MODAL;
 }





More information about the Bf-blender-cvs mailing list