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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2021-02-23 03:57:03 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2021-02-23 07:16:49 +0300
commitd9abcee47eb5540f6f5fd60b83cc7d45ad7bc56f (patch)
treec778dadbff837cfcd7bf835bebf1b17b2ca71876
parent9fe53bd4a1ac0eaa63fcf1ebd151fe4db0411b49 (diff)
Alembic procedural: fix crash when accessing data out of frame bounds
-rw-r--r--intern/cycles/render/alembic.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/render/alembic.cpp b/intern/cycles/render/alembic.cpp
index 5942e512e60..0f11a9368da 100644
--- a/intern/cycles/render/alembic.cpp
+++ b/intern/cycles/render/alembic.cpp
@@ -1344,6 +1344,11 @@ void AlembicProcedural::generate(Scene *scene, Progress &progress)
assert(scene_ == nullptr || scene_ == scene);
scene_ = scene;
+ if (frame < start_frame || frame > end_frame) {
+ clear_modified();
+ return;
+ }
+
bool need_shader_updates = false;
/* Check for changes in shaders (newly requested attributes). */