[Bf-committers] Wrong shortcuts for rotate/scale in toolbox (patch)
Christian Plessl
bf-committers@blender.org
Mon, 26 Jan 2004 21:10:45 +0100
--Apple-Mail-3-203881695
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
I'm a newbie to blender and the blender code. Anyway, it seems to me,
that the shortcuts for rotate and scale on axis are displayed wrong in
the toolbox menu. I guess the right shortcut for scale on X axis should
be S,X instead of G,X.
I have attached a patch that fixes these problems.
Best regards,
Christian
--Apple-Mail-3-203881695
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="toolbox.patch"
Content-Disposition: attachment;
filename=toolbox.patch
Index: source/blender/src/toolbox.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/toolbox.c,v
retrieving revision 1.44
diff -u -r1.44 toolbox.c
--- source/blender/src/toolbox.c 24 Jan 2004 05:10:34 -0000 1.44
+++ source/blender/src/toolbox.c 26 Jan 2004 20:10:17 -0000
@@ -1974,13 +1974,13 @@
}
static TBitem tb_transform_rotateaxis[]= {
-{ 0, "X Global|G, X", 0, NULL},
-{ 0, "Y Global|G, Y", 1, NULL},
-{ 0, "Z Global|G, Z", 2, NULL},
+{ 0, "X Global|R, X", 0, NULL},
+{ 0, "Y Global|R, Y", 1, NULL},
+{ 0, "Z Global|R, Z", 2, NULL},
{ 0, "SEPR", 0, NULL},
-{ 0, "X Local|G, X, X", 3, NULL},
-{ 0, "Y Local|G, Y, Y", 4, NULL},
-{ 0, "Z Local|G, Z, Z", 5, NULL},
+{ 0, "X Local|R, X, X", 3, NULL},
+{ 0, "Y Local|R, Y, Y", 4, NULL},
+{ 0, "Z Local|R, Z, Z", 5, NULL},
{ -1, "", 0, tb_do_transform_rotateaxis}};
@@ -2011,13 +2011,13 @@
}
static TBitem tb_transform_scaleaxis[]= {
-{ 0, "X Global|G, X", 0, NULL},
-{ 0, "Y Global|G, Y", 1, NULL},
-{ 0, "Z Global|G, Z", 2, NULL},
+{ 0, "X Global|S, X", 0, NULL},
+{ 0, "Y Global|S, Y", 1, NULL},
+{ 0, "Z Global|S, Z", 2, NULL},
{ 0, "SEPR", 0, NULL},
-{ 0, "X Local|G, X, X", 3, NULL},
-{ 0, "Y Local|G, Y, Y", 4, NULL},
-{ 0, "Z Local|G, Z, Z", 5, NULL},
+{ 0, "X Local|S, X, X", 3, NULL},
+{ 0, "Y Local|S, Y, Y", 4, NULL},
+{ 0, "Z Local|S, Z, Z", 5, NULL},
{ -1, "", 0, tb_do_transform_scaleaxis}};
static void tb_do_transform_clearapply(void *arg, int event)
--Apple-Mail-3-203881695
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
--
Christian Plessl <plessl@tik.ee.ethz.ch>
--Apple-Mail-3-203881695--