Revision: 23810
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23810
Author:   theeth
Date:     2009-10-13 18:05:57 +0200 (Tue, 13 Oct 2009)

Log Message:
-----------
Enable snapping for curve edit mode.

It's still not possible to snap TO a curve, but at least curves control points 
can be snapped (or projected) to mesh geometry.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/transform/transform_snap.c

Modified: trunk/blender/source/blender/editors/transform/transform_snap.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_snap.c     
2009-10-13 15:30:19 UTC (rev 23809)
+++ trunk/blender/source/blender/editors/transform/transform_snap.c     
2009-10-13 16:05:57 UTC (rev 23810)
@@ -115,7 +115,7 @@
 {
        int status = 0;
        
-       if (obedit == NULL || ELEM(obedit->type, OB_MESH, OB_ARMATURE)) /* only 
support object mesh or armature */
+       if (obedit == NULL || ELEM3(obedit->type, OB_MESH, OB_ARMATURE, 
OB_CURVE)) /* only support object mesh, armature, curves */
        {
                status = 1;
        }
@@ -393,7 +393,7 @@
                /* Edit mode */
                if (t->tsnap.applySnap != NULL && // A snapping function 
actually exist
                        (snapping) && // Only if the snap flag is on
-                       (obedit != NULL && ELEM(obedit->type, OB_MESH, 
OB_ARMATURE)) ) // Temporary limited to edit mode meshes or armature
+                       (obedit != NULL && ELEM3(obedit->type, OB_MESH, 
OB_ARMATURE, OB_CURVE)) ) // Temporary limited to edit mode meshes, armature, 
curves
                {
                        t->tsnap.status |= SNAP_ON;
                        t->tsnap.modePoint = SNAP_GEO;


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to