[Bf-blender-cvs] [a2c99a4] gooseberry: Fix for invalid sample indices.
Lukas Tönne
noreply at git.blender.org
Thu Jun 18 14:48:41 CEST 2015
Commit: a2c99a495d4efbf8ad7971aa158dc3c2812d62a6
Author: Lukas Tönne
Date: Thu Jun 18 14:47:31 2015 +0200
Branches: gooseberry
https://developer.blender.org/rBa2c99a495d4efbf8ad7971aa158dc3c2812d62a6
Fix for invalid sample indices.
===================================================================
M source/blender/pointcache/alembic/abc_split.cpp
===================================================================
diff --git a/source/blender/pointcache/alembic/abc_split.cpp b/source/blender/pointcache/alembic/abc_split.cpp
index 0630b78..086bdf0 100644
--- a/source/blender/pointcache/alembic/abc_split.cpp
+++ b/source/blender/pointcache/alembic/abc_split.cpp
@@ -91,7 +91,7 @@ static void slice_array_property(IArrayProperty iProp, OCompoundProperty out_par
char *buf = NULL;
- for (index_t index = 0; index <= iProp.getNumSamples(); ++index) {
+ for (index_t index = 0; index < iProp.getNumSamples(); ++index) {
chrono_t time = time_sampling->getSampleTime(index);
if (filter.use_time(time)) {
ArraySamplePtr sample_ptr;
@@ -135,7 +135,7 @@ static void slice_scalar_property(IScalarProperty iProp, OCompoundProperty out_p
}
#endif
- for (index_t index = 0; index <= iProp.getNumSamples(); ++index) {
+ for (index_t index = 0; index < iProp.getNumSamples(); ++index) {
chrono_t time = time_sampling->getSampleTime(index);
if (filter.use_time(time)) {
reader->getSample(index, (void*)buf);
More information about the Bf-blender-cvs
mailing list