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:
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) {