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:
authorJanne Karhu <jhkarh@gmail.com>2009-10-18 23:48:33 +0400
committerJanne Karhu <jhkarh@gmail.com>2009-10-18 23:48:33 +0400
commit442d767d16e86f0e293109d2543912d37af3030d (patch)
tree704e90f7e4516e8da741d38fb2c9a76161059032 /source/blender/editors/physics
parent5506d12bba76fc89e809c418920fdd4fe00e4cb8 (diff)
Fix for [#19610] Hair cut tool, keeps cutting hidden hairs.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/particle_edit.c4
1 files changed, 4 insertions, 0 deletions
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;