diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-20 21:39:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-20 21:39:13 +0400 |
commit | f8ec017900cba5702742bf31d99e8c6df6a1fcad (patch) | |
tree | 92482a8819e48e5fd92b61c5eb7e80bd8a1f6ffa /source/blender/blenloader/intern | |
parent | d4dec1c3bcc8fa85e8f4cf3372efe077648a67bf (diff) |
floats were being promoted to doubles in quite a few cases (using gcc's -Wdouble-promotion), went over render module and use float constants, gives small but consistent speedup - approx 3%.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index bd12677485c..0e99b357054 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -11670,8 +11670,8 @@ static void do_versions(FileData *fd, Library *lib, Main *main) Tex *tex; for(tex= main->tex.first; tex; tex= tex->id.next) { if(tex->pd) { - if (tex->pd->falloff_speed_scale == 0.0) - tex->pd->falloff_speed_scale = 100.0; + if (tex->pd->falloff_speed_scale == 0.0f) + tex->pd->falloff_speed_scale = 100.0f; if (!tex->pd->falloff_curve) { tex->pd->falloff_curve = curvemapping_add(1, 0, 0, 1, 1); |