diff options
author | Guillermo S. Romero <gsr.b3d@infernal-iceberg.com> | 2009-10-21 21:56:26 +0400 |
---|---|---|
committer | Guillermo S. Romero <gsr.b3d@infernal-iceberg.com> | 2009-10-21 21:56:26 +0400 |
commit | 5fb73d8b81fbd1823a6c807714d6b3589e918a3b (patch) | |
tree | 4fc89128e6684313da52ad76e4b43b4bb0c62950 /source/blender/editors/physics | |
parent | eab11543f3c411940744ab2f447a5c222d5a50dd (diff) |
Make compiler happy, remove doubtful non init usage.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 9875051e1ad..ee1a21db7e5 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -2795,7 +2795,7 @@ static void brush_length(PEData *data, int point_index) PTCacheEdit *edit= data->edit; PTCacheEditPoint *point = edit->points + point_index; KEY_K; - float dvec[3],pvec[3]; + float dvec[3],pvec[3] = {0.0f, 0.0f, 0.0f}; LOOP_KEYS { if(k==0) { @@ -2819,7 +2819,7 @@ static void brush_puff(PEData *data, int point_index) PTCacheEditPoint *point = edit->points + point_index; KEY_K; float mat[4][4], imat[4][4]; - float lastco[3], rootco[3], co[3], nor[3], kco[3], dco[3], fac=0.0f, length=0.0f; + float lastco[3], rootco[3] = {0.0f, 0.0f, 0.0f}, co[3], nor[3], kco[3], dco[3], fac=0.0f, length=0.0f; if(psys && !(psys->flag & PSYS_GLOBAL_HAIR)) { psys_mat_hair_to_global(data->ob, data->dm, psys->part->from, psys->particles + point_index, mat); |