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:
authorAntonio Vazquez <blendergit@gmail.com>2022-02-10 18:59:57 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-02-10 18:59:57 +0300
commita7ae33202fa94a52235fbe595873d81e482d5f58 (patch)
treec075afc26803edd25de9021d3190d2d9613f741d /intern/cycles/bvh/embree.cpp
parenta5cddaefd344a4ab8c1d5d1be39edf6e6dc456e0 (diff)
parentad77b52abcbd0daf0d1a3ad395983cb90beeb72a (diff)
Merge branch 'master' into greasepencil-objectgreasepencil-object
Conflicts: release/scripts/startup/bl_ui/space_userpref.py source/blender/blenkernel/BKE_gpencil.h source/blender/blenkernel/BKE_gpencil_update_cache.h source/blender/blenkernel/CMakeLists.txt source/blender/blenkernel/intern/gpencil.c source/blender/blenkernel/intern/gpencil_update_cache.c source/blender/blenlib/BLI_listbase.h source/blender/blenlib/intern/DLRB_tree.c source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_gpencil.cc source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_gpencil.h source/blender/makesdna/DNA_gpencil_types.h source/blender/makesrna/intern/rna_gpencil.c
Diffstat (limited to 'intern/cycles/bvh/embree.cpp')
-rw-r--r--intern/cycles/bvh/embree.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/bvh/embree.cpp b/intern/cycles/bvh/embree.cpp
index 616b6273e6a..731fef52063 100644
--- a/intern/cycles/bvh/embree.cpp
+++ b/intern/cycles/bvh/embree.cpp
@@ -471,7 +471,7 @@ void BVHEmbree::add_instance(Object *ob, int i)
assert(instance_bvh != NULL);
const size_t num_object_motion_steps = ob->use_motion() ? ob->get_motion().size() : 1;
- const size_t num_motion_steps = min(num_object_motion_steps, RTC_MAX_TIME_STEP_COUNT);
+ const size_t num_motion_steps = min(num_object_motion_steps, (size_t)RTC_MAX_TIME_STEP_COUNT);
assert(num_object_motion_steps <= RTC_MAX_TIME_STEP_COUNT);
RTCGeometry geom_id = rtcNewGeometry(rtc_device, RTC_GEOMETRY_TYPE_INSTANCE);
@@ -522,7 +522,7 @@ void BVHEmbree::add_triangles(const Object *ob, const Mesh *mesh, int i)
}
assert(num_motion_steps <= RTC_MAX_TIME_STEP_COUNT);
- num_motion_steps = min(num_motion_steps, RTC_MAX_TIME_STEP_COUNT);
+ num_motion_steps = min(num_motion_steps, (size_t)RTC_MAX_TIME_STEP_COUNT);
const size_t num_triangles = mesh->num_triangles();
@@ -775,7 +775,7 @@ void BVHEmbree::add_curves(const Object *ob, const Hair *hair, int i)
}
assert(num_motion_steps <= RTC_MAX_TIME_STEP_COUNT);
- num_motion_steps = min(num_motion_steps, RTC_MAX_TIME_STEP_COUNT);
+ num_motion_steps = min(num_motion_steps, (size_t)RTC_MAX_TIME_STEP_COUNT);
const size_t num_curves = hair->num_curves();
size_t num_segments = 0;