Bugfix:
authorJoshua Leung <aligorith@gmail.com>
Sat, 1 Sep 2007 04:24:16 +0000 (04:24 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sat, 1 Sep 2007 04:24:16 +0000 (04:24 +0000)
Snap Cursor to Selected in EditMode for bone was still not working correctly. A missing check made it impossible to snap to joints in some situations.

source/blender/src/edit.c

index f96f972e6410139c643f04fd090ff21fa8be9c37..ca6239b5580dfd3f49429757fec4511cd4067fa7 100644 (file)
@@ -1005,7 +1005,7 @@ static void make_trans_verts(float *min, float *max, int mode)
                                                tottrans++;
                                        }       
                                        
                                                tottrans++;
                                        }       
                                        
-                                       if (mode & 2) {
+                                       if ((mode & 2) && (tipsel)) {
                                                VECCOPY (tv->oldloc, ebo->tail);
                                                tv->loc= ebo->tail;
                                                tv->nor= NULL;
                                                VECCOPY (tv->oldloc, ebo->tail);
                                                tv->loc= ebo->tail;
                                                tv->nor= NULL;