diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-04 16:28:47 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-04 16:30:34 +0300 |
commit | 2c21e3e35f304afdc1a320fb8ccef91e0119dfc8 (patch) | |
tree | b30f0ac06de3b2d9d9362191defd6920cb9f70b9 /source/blender/blenkernel/BKE_particle.h | |
parent | 1753177ad8acfabbcc74c3d8e20fa874f2b97167 (diff) |
Fix T60132: Convert hair particles to mesh
Needed to port operator to use evaluated particle system.
But also changed interface to always show Convert button when
draw type is set to Path (Hair particle system is forced to
be draws as path). This avoid rather expensive lookup on every
redraw, but will show Convert button for un-baked particle
emitter.
Probably, an acceptable compromise.
Diffstat (limited to 'source/blender/blenkernel/BKE_particle.h')
-rw-r--r-- | source/blender/blenkernel/BKE_particle.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_particle.h b/source/blender/blenkernel/BKE_particle.h index cf123f78ae0..5a1241f1de2 100644 --- a/source/blender/blenkernel/BKE_particle.h +++ b/source/blender/blenkernel/BKE_particle.h @@ -303,7 +303,19 @@ void psys_set_current_num(Object *ob, int index); struct LatticeDeformData *psys_create_lattice_deform_data(struct ParticleSimulationData *sim); +/* For a given evaluated particle system get its original. + * + * If this input is an original particle system already, the return value is the + * same as the input. */ struct ParticleSystem *psys_orig_get(struct ParticleSystem *psys); + + +/* For a given original object and its particle system, get evaluated particle + * system within a given dependency graph. */ +struct ParticleSystem *psys_eval_get(struct Depsgraph *depsgraph, + struct Object *object, + struct ParticleSystem *psys); + bool psys_in_edit_mode(struct Depsgraph *depsgraph, const struct ParticleSystem *psys); bool psys_check_enabled(struct Object *ob, struct ParticleSystem *psys, const bool use_render_params); bool psys_check_edited(struct ParticleSystem *psys); |