Revision: 49485 http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49485 Author: genscher Date: 2012-08-01 20:29:37 +0000 (Wed, 01 Aug 2012) Log Message: ----------- Bugfix: High resolution "exploded" when using uneven resolutions, sometimes with specific object scaling.
Part of Smoke Development Phase III. Credit also goes to MiikaH: It was a teamwork effort and took days to track down. :) 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-01 20:15:22 UTC (rev 49484) +++ trunk/blender/intern/smoke/intern/WAVELET_NOISE.h 2012-08-01 20:29:37 UTC (rev 49485) @@ -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 < n / 2; i++) { + for (int i = 0; i < ceil((float)n / 2); i++) { to[i * stride] = 0; for (int k = 2 * i - 16; k < 2 * i + 16; k++) { // handle boundary _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs