Commit: 8b9d5fd1eb853a72ebba35c2c3f31d165dc6ec68
Author: Lukas Tönne
Date:   Tue Apr 7 12:09:46 2015 +0200
Branches: alembic
https://developer.blender.org/rB8b9d5fd1eb853a72ebba35c2c3f31d165dc6ec68

Fix for simdebug data cache reading.

Data pointers were not advanced, so only the first debug element would
show up properly.

===================================================================

M       source/blender/pointcache/alembic/abc_simdebug.cpp

===================================================================

diff --git a/source/blender/pointcache/alembic/abc_simdebug.cpp 
b/source/blender/pointcache/alembic/abc_simdebug.cpp
index 659cfe7..fe25d31 100644
--- a/source/blender/pointcache/alembic/abc_simdebug.cpp
+++ b/source/blender/pointcache/alembic/abc_simdebug.cpp
@@ -157,6 +157,13 @@ static PTCReadSampleResult apply_sample(SimDebugData *data,
        
        for (int i = 0; i < numelem; ++i) {
                BKE_sim_debug_data_add_element_ex(data, *data_type, 
data_v1->getValue(), data_v2->getValue(), data_color->x, data_color->y, 
data_color->z, *data_category_hash, *data_hash);
+               
+               ++data_category_hash;
+               ++data_hash;
+               ++data_type;
+               ++data_color;
+               ++data_v1;
+               ++data_v2;
        }
        
        return PTC_READ_SAMPLE_EXACT;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to