Fix T50350: Quick Explode time frame problem

The settings.frame_start rna was clamping frame start to frame end when frame start was bigger than frame end.
The fix is simply to set frame end first
This commit is contained in:
Dalai Felinto 2017-01-04 10:13:28 +01:00
parent 3a1b1100af
commit c0c48cdacc
Notes: blender-bot 2023-12-22 20:14:11 +01:00
Referenced by issue #50350, Quick Explode time frame problem
1 changed files with 2 additions and 1 deletions

View File

@ -210,8 +210,9 @@ class QuickExplode(Operator):
settings = obj.particle_systems[-1].settings
settings.count = self.amount
settings.frame_start = self.frame_start
# first set frame end, to prevent frame start clamping
settings.frame_end = self.frame_end - self.frame_duration
settings.frame_start = self.frame_start
settings.lifetime = self.frame_duration
settings.normal_factor = self.velocity
settings.render_type = 'NONE'