Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2013-06-27 19:48:16 +0400
committerThomas Dinges <blender@dingto.org>2013-06-27 19:48:16 +0400
commitc6ce8de20ef628c454916dbee8b7a655437fd208 (patch)
treec8b766319821a65e56955e41320a51bc7db3dc5d /intern/cycles/blender/blender_curves.cpp
parent00d934471901fb59d805ad75b28a12288655fb14 (diff)
Code cleanup / Cycles:
* Some cleanup for castings.
Diffstat (limited to 'intern/cycles/blender/blender_curves.cpp')
-rw-r--r--intern/cycles/blender/blender_curves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/blender_curves.cpp b/intern/cycles/blender/blender_curves.cpp
index 56d78fb5c26..27c52797f5f 100644
--- a/intern/cycles/blender/blender_curves.cpp
+++ b/intern/cycles/blender/blender_curves.cpp
@@ -183,7 +183,7 @@ bool ObtainCacheParticleData(Mesh *mesh, BL::Mesh *b_mesh, BL::Object *b_ob, Par
int mi = clamp(b_psys.settings().material()-1, 0, mesh->used_shaders.size()-1);
int shader = mesh->used_shaders[mi];
int draw_step = background ? b_psys.settings().render_step() : b_psys.settings().draw_step();
- int ren_step = (int)pow((float)2.0f,(float)draw_step);
+ int ren_step = (int)powf(2.0f, (float)draw_step);
int totparts = b_psys.particles.length();
int totchild = background ? b_psys.child_particles.length() : (int)((float)b_psys.child_particles.length() * (float)b_psys.settings().draw_percentage() / 100.0f);
int totcurves = totchild;