diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-11-17 19:22:05 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-11-17 19:29:41 +0300 |
commit | 89d5714d8f233b4bbb83f6a7b33237e2ec04ee79 (patch) | |
tree | beee985786bb7660ec42f7f11bda91bc77c31bc9 /intern/cycles/scene | |
parent | ea7efa556936851075c2bda2f772ba4a7674a01c (diff) |
Build: match GCC and Clang float conversion warnings in Cycles
Diffstat (limited to 'intern/cycles/scene')
-rw-r--r-- | intern/cycles/scene/mesh_subdivision.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/scene/mesh_subdivision.cpp b/intern/cycles/scene/mesh_subdivision.cpp index a0c0bc68f8b..35f15cfafbc 100644 --- a/intern/cycles/scene/mesh_subdivision.cpp +++ b/intern/cycles/scene/mesh_subdivision.cpp @@ -331,7 +331,8 @@ struct OsdPatch : Patch { void eval(float3 *P, float3 *dPdu, float3 *dPdv, float3 *N, float u, float v) { - const Far::PatchTable::PatchHandle *handle = osd_data->patch_map->FindPatch(patch_index, u, v); + const Far::PatchTable::PatchHandle *handle = osd_data->patch_map->FindPatch( + patch_index, (double)u, (double)v); assert(handle); float p_weights[20], du_weights[20], dv_weights[20]; |