[Bf-blender-cvs] [2cbbaea] master: Fix for particle edit mode using wrong pixel distances.
Lukas Tönne
noreply at git.blender.org
Wed Mar 12 12:00:06 CET 2014
Commit: 2cbbaea44e1689230a8d2632dfd538642e0eee05
Author: Lukas Tönne
Date: Wed Mar 12 11:52:43 2014 +0100
https://developer.blender.org/rB2cbbaea44e1689230a8d2632dfd538642e0eee05
Fix for particle edit mode using wrong pixel distances.
rB57dba739176153e052d77611ff0e554f05984686 unified pixel distance values
but omitted a factor 100 for particle edit.
===================================================================
M source/blender/editors/physics/particle_edit.c
===================================================================
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 2fb131d..0dee36d 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;
More information about the Bf-blender-cvs
mailing list