Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-12-26 23:23:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-26 23:23:13 +0300
commitd5592fe254c7061ca8bbcea93b6098dc9bf3d683 (patch)
tree740a09af66dbfe68763d2d9b721479e67bafe434 /source/blender/editors/physics
parent5689ab39754dcd7229f616e3eed206bea5611545 (diff)
fixes for errors/warnings found with cppcheck
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/particle_edit.c6
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);