[tuhopuu-devel] Re: [tuhopuu-cvs] CVS commit:
tuhopuu3/source/blender/src editscreen.c
LECOCQ Guillaume
lecocqguillaume at gmail.com
Mon Feb 14 22:56:27 CET 2005
Hello, I add the possibility in the code of Jiri to change between
horizontal and vertical split.
To change the split push TAKBEY or MIDDLEMOUSE.
The patch is :
Index: source/blender/src/editscreen.c
===================================================================
RCS file: /cvsroot/tuhopuu/tuhopuu3/source/blender/src/editscreen.c,v
retrieving revision 1.2
diff -u -r1.2 editscreen.c
--- source/blender/src/editscreen.c 13 Feb 2005 16:10:27 -0000 1.2
+++ source/blender/src/editscreen.c 14 Feb 2005 21:52:36 -0000
@@ -2499,6 +2499,19 @@
}
event= extern_qread(&val);
+
+ if(val && (event==TABKEY||event==MIDDLEMOUSE)) {
+ scrarea_draw_splitpoint(sa, dir, fac);
+ if(dir=='h') {
+ dir='v';
+ set_cursor(CURSOR_Y_MOVE);
+ } else {
+ dir='h';
+ set_cursor(CURSOR_X_MOVE);
+ }
+ first=1;
+ }
+
if(val && event==LEFTMOUSE) {
if(dir=='h') {
fac= split- (sa->v1->vec.y);
More information about the tuhopuu-devel
mailing list