diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-02-25 22:29:58 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-02-25 22:29:58 +0300 |
commit | 9ac7c8e91a9e699ff3490881c554e08fc348f442 (patch) | |
tree | 6b38e208514291ae47bda0fa61a277ef9d60ce96 /source/blender/editors/transform/transform_manipulator.c | |
parent | c3078c94fb48cc1376b170bb3c7ce1f2e14fa2f3 (diff) |
2.5: Particle edit mode more functional now. Transform, brush
editing, paint cursor, radial control, mouse/border/circle/lasso
select, mirroring, bad level calls fixed, etc.
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r-- | source/blender/editors/transform/transform_manipulator.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c index 9308cf73af8..99d7805b938 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -405,16 +405,18 @@ int calc_manipulator_stats(ScrArea *sa) ParticleEditKey *ek; int k; - if(psys->edit){ - for(a=0; a<psys->totpart; a++,pa++){ + if(psys->edit) { + for(a=0; a<psys->totpart; a++,pa++) { if(pa->flag & PARS_HIDE) continue; - for(k=0, ek=psys->edit->keys[a]; k<pa->totkey; k++,ek++){ - if(ek->flag & PEK_SELECT){ + + for(k=0, ek=psys->edit->keys[a]; k<pa->totkey; k++, ek++) { + if(ek->flag & PEK_SELECT) { calc_tw_center(ek->world_co); totsel++; } } } + /* selection center */ if(totsel) VecMulf(G.scene->twcent, 1.0f/(float)totsel); // centroid! |