diff options
author | Janne Karhu <jhkarh@gmail.com> | 2011-01-10 05:40:24 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2011-01-10 05:40:24 +0300 |
commit | d9c6f51ee25e4c3d56a9e06fb8e544f230174744 (patch) | |
tree | 9368fbf812fd9428850988b405786d51d2e8b49a /source/blender/blenkernel/intern/pointcache.c | |
parent | 83806d40429f3c847a3265cdb1cfe20bf6b08c3d (diff) |
Compiler warning fixes for the same point cache things Joshua tried to fix earlier, don't know why I didn't notice these before.
Diffstat (limited to 'source/blender/blenkernel/intern/pointcache.c')
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index c4f1690e474..6b3584c1832 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -97,7 +97,7 @@ /* could be made into a pointcache option */ #define DURIAN_POINTCACHE_LIB_OK 1 -int ptcache_data_size[] = { +static int ptcache_data_size[] = { sizeof(unsigned int), // BPHYS_DATA_INDEX 3 * sizeof(float), // BPHYS_DATA_LOCATION 3 * sizeof(float), // BPHYS_DATA_VELOCITY @@ -108,6 +108,11 @@ int ptcache_data_size[] = { sizeof(BoidData) // case BPHYS_DATA_BOIDS }; +static int ptcache_extra_datasize[] = { + 0, + sizeof(ParticleSpring) +}; + /* forward declerations */ static int ptcache_file_compressed_read(PTCacheFile *pf, unsigned char *result, unsigned int len); static int ptcache_file_compressed_write(PTCacheFile *pf, unsigned char *in, unsigned int in_len, unsigned char *out, int mode); |