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-04-23 20:29:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-23 20:29:13 +0400
commitb8c4c54ff0a0d2315b711612238192ca4c4562f5 (patch)
tree3888bc8092d2477ebe099a2320d2cbce01243d54 /source/blender/render
parentbfcdd452455f5075cd3150623f513bb9f70e4876 (diff)
corrected more issues from [#31069] Analyzing the Blender project with PVS-Studio
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/convertblender.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c
index ba8fd40db61..66ed0bd85a9 100644
--- a/source/blender/render/intern/source/convertblender.c
+++ b/source/blender/render/intern/source/convertblender.c
@@ -1782,9 +1782,10 @@ static int render_new_particle_system(Render *re, ObjectRen *obr, ParticleSystem
hasize = ma->hasize;
+ /* XXX 'tpsys' is alwyas NULL, this code won't run! */
/* get orco */
- if (tpsys && part->phystype==PART_PHYS_NO) {
- tpa=tpsys->particles+pa->num;
+ if (tpsys && part->phystype == PART_PHYS_NO) {
+ tpa = tpsys->particles + pa->num;
psys_particle_on_emitter(psmd,tpart->from,tpa->num,pa->num_dmcache,tpa->fuv,tpa->foffset,co,nor,0,0,sd.orco,0);
}
else