Fix for own commit: particle rng arrays should be declared extern in the
authorLukas Tönne <lukas.toenne@gmail.com>
Fri, 7 Mar 2014 12:18:15 +0000 (13:18 +0100)
committerLukas Tönne <lukas.toenne@gmail.com>
Fri, 7 Mar 2014 12:18:15 +0000 (13:18 +0100)
header.

source/blender/blenkernel/BKE_particle.h
source/blender/blenkernel/intern/particle.c

index d87b20907120fde796a106a832bd2d7335f9fcc5..877aafe67a4d825995ac25f41291f6f8b0638525 100644 (file)
@@ -247,9 +247,9 @@ typedef struct ParticleDrawData {
 #define PARTICLE_DRAW_DATA_UPDATED  1
 
 #define PSYS_FRAND_COUNT    1024
-unsigned int PSYS_FRAND_SEED_OFFSET[PSYS_FRAND_COUNT];
-unsigned int PSYS_FRAND_SEED_MULTIPLIER[PSYS_FRAND_COUNT];
-float PSYS_FRAND_BASE[PSYS_FRAND_COUNT];
+extern unsigned int PSYS_FRAND_SEED_OFFSET[PSYS_FRAND_COUNT];
+extern unsigned int PSYS_FRAND_SEED_MULTIPLIER[PSYS_FRAND_COUNT];
+extern float PSYS_FRAND_BASE[PSYS_FRAND_COUNT];
 
 void psys_init_rng(void);
 
index 48db07d45ebf35296185e1697a4b70bfba61013c..10889763638e5da25f320a7bd389793ee09f4ed5 100644 (file)
 
 #include "RE_render_ext.h"
 
+unsigned int PSYS_FRAND_SEED_OFFSET[PSYS_FRAND_COUNT];
+unsigned int PSYS_FRAND_SEED_MULTIPLIER[PSYS_FRAND_COUNT];
+float PSYS_FRAND_BASE[PSYS_FRAND_COUNT];
+
 void psys_init_rng(void)
 {
        int i;