Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2012-02-12 04:43:57 +0400
committerJanne Karhu <jhkarh@gmail.com>2012-02-12 04:43:57 +0400
commit5a2454c3f8b41856a73275daba363b3e2dfa748c (patch)
tree18f86ade1440dabae81c6be218b07742a41fcbb7 /source/blender/blenkernel/intern
parent670bde28dd2ca162bce3e465e7f0c4457c046d56 (diff)
Fix [#29737] Can't edit particle hair if particle count is 0.
* Hair wasn't flagged as "done" if particle count was 0 before setting particles as hair, so particle edit mode didn't work.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index e853c0fee19..c00101c98ab 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -4428,6 +4428,7 @@ void particle_system_update(Scene *scene, Object *ob, ParticleSystem *psys)
if(psys->totpart == 0 && part->totpart == 0) {
psys_free_path_cache(psys, NULL);
free_hair(ob, psys, 0);
+ psys->flag |= PSYS_HAIR_DONE;
}
/* (re-)create hair */
else if(hair_needs_recalc(psys)) {