diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-14 16:33:53 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-15 13:53:58 +0300 |
commit | ffde74a878882618ab4d4179ba8dd9b98aab15e2 (patch) | |
tree | 9feb87aff52fc5cfa7191d79113d9f634a043ed2 /release | |
parent | bb3efe61276346f7ee12d24308d95d447941b0ec (diff) |
Simple hair children: Initial implementation of twist control
It allows to have children hair to be twisted around parent curve, which is
quite an essential feature when creating hair braids.
There are currently two controls:
- Number of turns around parent children.
- Influence curve, which allows to modify "twistness" along the strand.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index b01d1ebbfa3..e552ff35ffa 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -1198,6 +1198,12 @@ class PARTICLE_PT_children(ParticleButtonsPanel, Panel): col.label(text="Effects:") sub = col.column(align=True) + if part.child_type == 'SIMPLE': + sub.prop(part, "twist") + sub.prop(part, "use_twist_curve") + if part.use_twist_curve: + sub.template_curve_mapping(part, "twist_curve") + sub.prop(part, "use_clump_curve") if part.use_clump_curve: sub.template_curve_mapping(part, "clump_curve") |