[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49760] trunk/blender/intern/smoke/intern/ WAVELET_NOISE.h: Smoke: High res on even resolution did not write to all cells (downsampling = n-1 , upsampling = n).
Daniel Genrich
daniel.genrich at gmx.net
Fri Aug 10 11:58:58 CEST 2012
Revision: 49760
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49760
Author: genscher
Date: 2012-08-10 09:58:58 +0000 (Fri, 10 Aug 2012)
Log Message:
-----------
Smoke: High res on even resolution did not write to all cells (downsampling = n-1, upsampling = n).
Thanks goes to MiikaH.
Modified Paths:
--------------
trunk/blender/intern/smoke/intern/WAVELET_NOISE.h
Modified: trunk/blender/intern/smoke/intern/WAVELET_NOISE.h
===================================================================
--- trunk/blender/intern/smoke/intern/WAVELET_NOISE.h 2012-08-10 09:32:43 UTC (rev 49759)
+++ trunk/blender/intern/smoke/intern/WAVELET_NOISE.h 2012-08-10 09:58:58 UTC (rev 49760)
@@ -107,7 +107,7 @@
// if these values are not local incorrect results are generated
float downCoeffs[32] = { DOWNCOEFFS };
const float *const aCoCenter= &downCoeffs[16];
- for (int i = 0; i < ceil((float)n / 2); i++) {
+ for (int i = 0; i <= n / 2; i++) {
to[i * stride] = 0;
for (int k = 2 * i - 16; k < 2 * i + 16; k++) {
// handle boundary
More information about the Bf-blender-cvs
mailing list