diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2021-03-31 18:10:04 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2021-03-31 18:18:32 +0300 |
commit | b4e584949c21d6b016744d756f944bd357647d30 (patch) | |
tree | 63207c8c44f8aad45d72f28a49810d17e51a9f81 | |
parent | 4fd7b1f3db345b83f12c60f75a8dd17bd050d40d (diff) |
Alembic procedural: fix out of bound access when editing object properties or shaders
The index_data_map was not cleared when clearing a cache, so this would just append
the new correct data to the end of the array instead of overwriting it, which would
cause us to then use outdated indices.
-rw-r--r-- | intern/cycles/render/alembic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/alembic.h b/intern/cycles/render/alembic.h index d0c5856a353..fbc45a607c8 100644 --- a/intern/cycles/render/alembic.h +++ b/intern/cycles/render/alembic.h @@ -239,6 +239,7 @@ template<typename T> class DataStore { { invalidate_last_loaded_time(); data.clear(); + index_data_map.clear(); } void invalidate_last_loaded_time() |