diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-26 23:23:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-26 23:23:13 +0300 |
commit | d5592fe254c7061ca8bbcea93b6098dc9bf3d683 (patch) | |
tree | 740a09af66dbfe68763d2d9b721479e67bafe434 /source/blender/editors/physics | |
parent | 5689ab39754dcd7229f616e3eed206bea5611545 (diff) |
fixes for errors/warnings found with cppcheck
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index c29214f4633..eccb257dab5 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -3803,15 +3803,15 @@ int PE_minmax(Scene *scene, float *min, float *max) { Object *ob= OBACT; PTCacheEdit *edit= PE_get_current(scene, ob); - ParticleSystem *psys = edit->psys; + ParticleSystem *psys; ParticleSystemModifierData *psmd = NULL; POINT_P; KEY_K; float co[3], mat[4][4]; int ok= 0; if(!edit) return ok; - - if(psys) + + if((psys = edit->psys)) psmd= psys_get_modifier(ob, psys); else unit_m4(mat); |