From cef4d344f948ce75a7787ad0c3915c87e1716ca1 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 18 Feb 2020 14:02:40 +0100 Subject: Fix Embree failing on objects with a very high number of motion steps Set the limit to 129 to match Embree. This applies to all devices for consistent render results. Ref T73778 --- intern/cycles/render/object.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'intern/cycles/render/object.h') diff --git a/intern/cycles/render/object.h b/intern/cycles/render/object.h index c5d878ec938..7bd3edf769b 100644 --- a/intern/cycles/render/object.h +++ b/intern/cycles/render/object.h @@ -81,6 +81,9 @@ class Object : public Node { int motion_step(float time) const; void update_motion(); + /* Maximum number of motion steps supported (due to Embree). */ + static const uint MAX_MOTION_STEPS = 129; + /* Check whether object is traceable and it worth adding it to * kernel scene. */ -- cgit v1.2.3