Fix for [#19610] Hair cut tool, keeps cutting hidden hairs.
authorJanne Karhu <jhkarh@gmail.com>
Sun, 18 Oct 2009 19:48:33 +0000 (19:48 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Sun, 18 Oct 2009 19:48:33 +0000 (19:48 +0000)
source/blender/editors/physics/particle_edit.c

index 74ed6451d29a9d0e9cb00ee0212a001f86baa0e8..6fc34c4fcf8a78e015cbfe87971e6387db0419f5 100644 (file)
@@ -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;