diff options
author | Danrae Pray <blink.ornitier@gmail.com> | 2020-01-17 16:24:24 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2020-01-17 16:26:42 +0300 |
commit | 1e91d9d4dc49b09d53a1b544174ec245c4e8e684 (patch) | |
tree | a23abbc580018d59f02648a4977aacdb11415191 | |
parent | 7f794ae09d252aefe6623bb240bfde056f6606bd (diff) |
Fix T51289: Particle System UI issue/annoyance: setting Start later than End should increase End if necessary, rather than capping it
Reviewed By: Luca Rood, Sebastian Parborg, Julian Eisel
Differential Revision: http://developer.blender.org/D2701
-rw-r--r-- | source/blender/makesrna/intern/rna_particle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c index d1cb7ad0604..9bc65de11e0 100644 --- a/source/blender/makesrna/intern/rna_particle.c +++ b/source/blender/makesrna/intern/rna_particle.c @@ -867,7 +867,7 @@ static void rna_PartSettings_start_set(struct PointerRNA *ptr, float value) /* check for clipping */ if (value > settings->end) { - value = settings->end; + settings->end = value; } /*if (settings->type==PART_REACTOR && value < 1.0) */ @@ -886,7 +886,7 @@ static void rna_PartSettings_end_set(struct PointerRNA *ptr, float value) /* check for clipping */ if (value < settings->sta) { - value = settings->sta; + settings->sta = value; } settings->end = value; |