diff options
author | Janne Karhu <jhkarh@gmail.com> | 2009-09-06 00:12:08 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2009-09-06 00:12:08 +0400 |
commit | 08b8fc34cfc082d73e657d1c2941662c36bc3514 (patch) | |
tree | 221eb2513a3830e8bd51e61ccbb44529afca5f58 /release/ui/buttons_particle.py | |
parent | 05c44056dc48bf718475a1e98c9abbd6cc00a535 (diff) |
Disconnect/connect hair:
- Moves hair from face-space to global space and back.
- Allows for editing of emitter mesh after hair combing.
- Disconnect hair before doing topology changing changes in mesh edit mode, connect after changes.
- Notes:
* The closest location on emitter surface to the hair root is used to connect the hair.
* Emitter deflection, sticky roots and add brush don't apply for disconnect hair in particle mode.
- Todo for future:
* Copy disconnected hair from object to another (when 2.5 has proper copy operators again).
* Possible automatic disconnect/connect with topology changing operations in mesh edit mode.
Other changes/fixes:
- Proper subtypes for some particle mode notifiers.
- Particle mode selections didn't draw correctly because of using lighting for the paths.
Diffstat (limited to 'release/ui/buttons_particle.py')
-rw-r--r-- | release/ui/buttons_particle.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/ui/buttons_particle.py b/release/ui/buttons_particle.py index f3339049962..b0051453b29 100644 --- a/release/ui/buttons_particle.py +++ b/release/ui/buttons_particle.py @@ -151,6 +151,11 @@ class PARTICLE_PT_particles(ParticleButtonsPanel): row = split.row() row.enabled = particle_panel_enabled(psys) row.itemR(part, "hair_step") + if psys.edited==True: + if psys.global_hair: + layout.itemO("particle.connect_hair") + else: + layout.itemO("particle.disconnect_hair") elif part.type=='REACTOR': split.enabled = particle_panel_enabled(psys) split.itemR(psys, "reactor_target_object") |