From 442d767d16e86f0e293109d2543912d37af3030d Mon Sep 17 00:00:00 2001 From: Janne Karhu Date: Sun, 18 Oct 2009 19:48:33 +0000 Subject: Fix for [#19610] Hair cut tool, keeps cutting hidden hairs. --- source/blender/editors/physics/particle_edit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors/physics') diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 74ed6451d29..6fc34c4fcf8 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -2708,6 +2708,10 @@ static void brush_cut(PEData *data, int pa_index) /* blunt scissors */ if(BLI_frand() > data->cutfac) return; + /* don't cut hidden */ + if(edit->points[pa_index].flag & PEP_HIDE) + return; + rad2= data->rad * data->rad; cut=0; -- cgit v1.2.3