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:
authorBrecht Van Lommel <brecht@blender.org>2021-11-17 19:22:05 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-11-17 19:29:41 +0300
commit89d5714d8f233b4bbb83f6a7b33237e2ec04ee79 (patch)
treebeee985786bb7660ec42f7f11bda91bc77c31bc9 /intern/cycles/scene/mesh_subdivision.cpp
parentea7efa556936851075c2bda2f772ba4a7674a01c (diff)
Build: match GCC and Clang float conversion warnings in Cycles
Diffstat (limited to 'intern/cycles/scene/mesh_subdivision.cpp')
-rw-r--r--intern/cycles/scene/mesh_subdivision.cpp3
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];