From 2cbbaea44e1689230a8d2632dfd538642e0eee05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Wed, 12 Mar 2014 11:52:43 +0100 Subject: [PATCH] Fix for particle edit mode using wrong pixel distances. rB57dba739176153e052d77611ff0e554f05984686 unified pixel distance values but omitted a factor 100 for particle edit. --- source/blender/editors/physics/particle_edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 2fb131db538..0dee36d31cd 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -915,7 +915,7 @@ static void pe_deflect_emitter(Scene *scene, Object *ob, PTCacheEdit *edit) int index; float *vec, *nor, dvec[3], dot, dist_1st=0.0f; float hairimat[4][4], hairmat[4][4]; - const float dist = ED_view3d_select_dist_px(); + const float dist = ED_view3d_select_dist_px() * 0.01f; if (edit==NULL || edit->psys==NULL || (pset->flag & PE_DEFLECT_EMITTER)==0 || (edit->psys->flag & PSYS_GLOBAL_HAIR)) return;