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>2012-02-25 12:37:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-25 12:37:51 +0400
commit57fd1fe00e2ec761c82cdcab9f6ce3c036bff3a0 (patch)
tree357c519975d246b5b3b6a3eef6ab3545ecd7b382
parent2d8227f20400767bcf0fbb0877a055534d8a99ff (diff)
remove redundant NULL check in draw_new_particle_system()
-rw-r--r--source/blender/editors/space_view3d/drawobject.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 497296748c6..1c666e7eda5 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -4131,8 +4131,9 @@ static void draw_new_particle_system(Scene *scene, View3D *v3d, RegionView3D *rv
{
Object *ob=base->object;
ParticleEditSettings *pset = PE_settings(scene);
- ParticleSettings *part;
- ParticleData *pars, *pa;
+ ParticleSettings *part = psys->part;
+ ParticleData *pars = psys->particles;
+ ParticleData *pa;
ParticleKey state, *states=NULL;
ParticleBillboardData bb;
ParticleSimulationData sim= {NULL};
@@ -4150,12 +4151,6 @@ static void draw_new_particle_system(Scene *scene, View3D *v3d, RegionView3D *rv
unsigned char tcol[4]= {0, 0, 0, 255};
/* 1. */
- if (psys==NULL)
- return;
-
- part=psys->part;
- pars=psys->particles;
-
if (part==NULL || !psys_check_enabled(ob, psys))
return;