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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-13 21:15:12 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-13 21:15:12 +0400
commit12b3d458f28c2d9d7af25650f04d2a379bbbf604 (patch)
treeefb42f99d4c961d072f20593e24f9f4855f33e32 /source/blender/editors/physics
parent52f1ed4db883f4160d7f67e038e28b48d17995d4 (diff)
Bugfixes for particle mode:
* Fix crash removing all particles. * Brush added particles did not get correct coordinates.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/particle_edit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index d4a180e2427..74ed6451d29 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -3003,6 +3003,9 @@ static void brush_add(PEData *data, short number)
for(k=0, hkey=pa->hair; k<pa->totkey; k++, hkey++, key++) {
key->co= hkey->co;
key->time= &hkey->time;
+
+ if(!(psys->flag & PSYS_GLOBAL_HAIR))
+ key->flag |= PEK_USE_WCO;
}
pa->size= 1.0f;