[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15943] branches/soc-2007-joeedh/source/ blender: fixed mem leak and lowered min angle strand limit for strands to 15
Joseph Eagar
joeedh at gmail.com
Mon Aug 4 10:39:13 CEST 2008
Revision: 15943
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15943
Author: joeedh
Date: 2008-08-04 10:39:10 +0200 (Mon, 04 Aug 2008)
Log Message:
-----------
fixed mem leak and lowered min angle strand limit for strands to 15
Modified Paths:
--------------
branches/soc-2007-joeedh/source/blender/blenkernel/BKE_dsm.h
branches/soc-2007-joeedh/source/blender/render/intern/source/dsm.c
Modified: branches/soc-2007-joeedh/source/blender/blenkernel/BKE_dsm.h
===================================================================
--- branches/soc-2007-joeedh/source/blender/blenkernel/BKE_dsm.h 2008-08-04 01:57:22 UTC (rev 15942)
+++ branches/soc-2007-joeedh/source/blender/blenkernel/BKE_dsm.h 2008-08-04 08:39:10 UTC (rev 15943)
@@ -104,7 +104,7 @@
//angle limit of strands. is in degrees, so
//code has to convert.ss
-#define DSM_STRAND_ADAPTCOS 25.0
+#define DSM_STRAND_ADAPTCOS 15.0
#define DSM_LINEAR 1
#define DSM_SOFT 0
Modified: branches/soc-2007-joeedh/source/blender/render/intern/source/dsm.c
===================================================================
--- branches/soc-2007-joeedh/source/blender/render/intern/source/dsm.c 2008-08-04 01:57:22 UTC (rev 15942)
+++ branches/soc-2007-joeedh/source/blender/render/intern/source/dsm.c 2008-08-04 08:39:10 UTC (rev 15943)
@@ -584,6 +584,8 @@
ImBuf *visbuf = dsm_make_vis_imbuf(shb->dsmbuffer);
visbuf->ftype |= PNG;
IMB_saveiff(visbuf, "dsm_vis.png", 0);
+ MEM_freeN(visbuf->rect_float);
+ visbuf->rect_float = NULL;
IMB_freeImBuf(visbuf);
}
}
@@ -1568,4 +1570,5 @@
}
return lerp(samp->depth+bias, samp2->depth+bias, z, samp->value, samp2->value);
-}
\ No newline at end of file
+}
+
More information about the Bf-blender-cvs
mailing list