New icon and button for Peel Object option for volume snapping.
[blender.git] / source / blender / src / transform_snap.c
index 99a6c3713a93565b546382f49e46624af8f6b29b..bedfaf60b77fdf66fb5ce68755b05a7e189cd13c 100644 (file)
@@ -505,13 +505,13 @@ void CalcSnapGeometry(TransInfo *t, float *vec)
                        
                        peelObjects(&depth_peels, mval);
                        
-//                     if (stk->nb_points > 0 && stk->points[stk->nb_points - 1].type == PT_CONTINUOUS)
+//                     if (LAST_SNAP_POINT_VALID)
 //                     {
-//                             last_p = stk->points[stk->nb_points - 1].p;
+//                             last_p = LAST_SNAP_POINT;
 //                     }
-//                     else if (LAST_SNAP_POINT_VALID)
+//                     else
 //                     {
-//                             last_p = LAST_SNAP_POINT;
+                               last_p = t->tsnap.snapPoint;
 //                     }