[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46211] branches/smoke2/intern/smoke/ intern/util/waveletnoise.h: Backport NAN fix for wavelet noise from trunk
Daniel Genrich
daniel.genrich at gmx.net
Wed May 2 22:53:07 CEST 2012
Revision: 46211
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46211
Author: genscher
Date: 2012-05-02 20:53:06 +0000 (Wed, 02 May 2012)
Log Message:
-----------
Backport NAN fix for wavelet noise from trunk
Modified Paths:
--------------
branches/smoke2/intern/smoke/intern/util/waveletnoise.h
Modified: branches/smoke2/intern/smoke/intern/util/waveletnoise.h
===================================================================
--- branches/smoke2/intern/smoke/intern/util/waveletnoise.h 2012-05-02 19:50:56 UTC (rev 46210)
+++ branches/smoke2/intern/smoke/intern/util/waveletnoise.h 2012-05-02 20:53:06 UTC (rev 46211)
@@ -53,7 +53,7 @@
const float *a = &_aCoeffs[16];
for (int i = 0; i < n / 2; i++) {
to[i * stride] = 0;
- for (int k = 2 * i - 16; k <= 2 * i + 16; k++)
+ for (int k = 2 * i - 16; k < 2 * i + 16; k++) // DG correcting for now
to[i * stride] += a[k - 2 * i] * from[modFast128(k) * stride]; // DG TODO: correct this? < <= need to test if this goes outside bounds, also with upsampling!
}
}
More information about the Bf-blender-cvs
mailing list