Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicki Myers <antihc3@gmail.com>2008-03-13 18:12:19 +0300
committerRicki Myers <antihc3@gmail.com>2008-03-13 18:12:19 +0300
commitb3dab572328e1989276f6f4ef2dd1b6b1f82e86e (patch)
treeb78e382aa878be17885e4c346b04f09d97376304 /source/blender/src/drawtext.c
parent4d3c9e88eda123c9f66825534035cbe98b7251cd (diff)
Patch #8488: UserPref to switch between pan/paste on MMB in text editor.
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r--source/blender/src/drawtext.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c
index a63e23b9886..22351479883 100644
--- a/source/blender/src/drawtext.c
+++ b/source/blender/src/drawtext.c
@@ -1546,13 +1546,16 @@ void winqreadtextspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
}
} else if (event==MIDDLEMOUSE) {
if (val) {
- #if defined(_WIN32) || defined(__APPLE__)
- do_textscroll(st, 1);
- #else
+ if (U.uiflag & USER_MMB_PASTE)
+ {
do_selection(st, G.qual&LR_SHIFTKEY);
get_selection_buffer(text);
do_draw= 1;
- #endif
+ }
+ else
+ {
+ do_textscroll(st, 1);
+ }
}
} else if (event==RIGHTMOUSE) {
if (val) {