diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-09-26 13:45:11 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-09-26 16:01:06 +0300 |
commit | e02ecd599bdc469f70b3383a280fa354008b5630 (patch) | |
tree | f69b174c831b129f0c3028a3496f4630069e3f45 /source/blender/editors/physics | |
parent | 39d855f8f32b5d0a2ed271ffcc613e191da90311 (diff) |
Fix T70259: Hair particle point selection if 'use_fade_time' is set
If fade_time is used, particles would be flagged PEK_HIDE (depending on
time settings), but since this is not respected in drawing in 2.8 yet
the user would have no indication of them keys being hidden.
Also doing this for hair doesnt make much sense anyways...
Reviewers: jacqueslucke
Maniphest Tasks: T70259
Differential Revision: https://developer.blender.org/D5901
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 5999076dd9f..6e0470a636b 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -1625,7 +1625,13 @@ void PE_update_object(Depsgraph *depsgraph, Scene *scene, Object *ob, int usefla if (pset->flag & PE_AUTO_VELOCITY) { update_velocities(edit); } - PE_hide_keys_time(scene, edit, CFRA); + + /* Only do this for emitter particles because drawing PE_FADE_TIME is not respected in 2.8 yet + * and flagging with PEK_HIDE will prevent selection. This might get restored once this is + * supported in drawing (but doesnt make much sense for hair anyways). */ + if (edit->psys->part->type == PART_EMITTER) { + PE_hide_keys_time(scene, edit, CFRA); + } /* regenerate path caches */ psys_cache_edit_paths(depsgraph, scene, ob, edit, CFRA, G.is_rendering); |