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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-08-23 05:18:01 +0300
committerCampbell Barton <campbell@blender.org>2022-08-23 05:18:01 +0300
commit76946780254248a965e8c09e387b6d6c21c34a71 (patch)
tree5e770ea7345231fa311363514f61b265ee6af120 /source
parentee60aa9d012dfd8304e7a7ba38f04c59b56d2efd (diff)
Cleanup: remove unnecessary NULL check
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/particle_child.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/particle_child.c b/source/blender/blenkernel/intern/particle_child.c
index 524ee31229b..2720bdacb3b 100644
--- a/source/blender/blenkernel/intern/particle_child.c
+++ b/source/blender/blenkernel/intern/particle_child.c
@@ -158,10 +158,8 @@ static void do_kink_spiral(ParticleThreadContext *ctx,
int start_index = 0, end_index = 0;
float kink_base[3];
- if (ptex) {
- kink_amp *= ptex->kink_amp;
- kink_freq *= ptex->kink_freq;
- }
+ kink_amp *= ptex->kink_amp;
+ kink_freq *= ptex->kink_freq;
cut_time = (totkeys - 1) * ptex->length;
zero_v3(spiral_start);