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:
authorSergey Sharybin <sergey@blender.org>2022-02-09 18:15:56 +0300
committerSergey Sharybin <sergey@blender.org>2022-02-09 18:16:21 +0300
commitc69ee218d786e6ae24804b00e7a7856c7638f7b0 (patch)
tree5c35fcc7114bf1d7c0f99a9740559d352baf3f6c /intern/cycles/scene/pointcloud.cpp
parent7313a84c5acb401817f1c44cfd8bf22428f34424 (diff)
Revert "Fix size_t -> int -> size_t round trip in Cycles"
This reverts commit d74bb7be1916744ae56347b49333eac22ebb7339. Need to re-iterate to have a proper support of all platforms.
Diffstat (limited to 'intern/cycles/scene/pointcloud.cpp')
-rw-r--r--intern/cycles/scene/pointcloud.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/scene/pointcloud.cpp b/intern/cycles/scene/pointcloud.cpp
index 6356a5030f3..4f88fe9db3d 100644
--- a/intern/cycles/scene/pointcloud.cpp
+++ b/intern/cycles/scene/pointcloud.cpp
@@ -55,7 +55,7 @@ float4 PointCloud::Point::motion_key(const float3 *points,
/* Figure out which steps we need to fetch and their
* interpolation factor. */
const size_t max_step = num_steps - 1;
- const size_t step = min((size_t)(time * max_step), max_step - 1);
+ const size_t step = min((int)(time * max_step), max_step - 1);
const float t = time * max_step - step;
/* Fetch vertex coordinates. */
const float4 curr_key = point_for_step(