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:
authorTon Roosendaal <ton@blender.org>2004-11-26 23:20:42 +0300
committerTon Roosendaal <ton@blender.org>2004-11-26 23:20:42 +0300
commit230784b824c411b8b7f34fbc422ab3849b40fa14 (patch)
treef9e6ca7364d084cf02e81514ed54f476fcacbf36 /source/blender/src/drawoops.c
parenta34432aa8c351176d66e21ee9047e4c95b8e8941 (diff)
Bug fix #1893
Option to switch left/right mouse didn't work for floating panels. It then still selected stuff behind the button. Was due to using wrong variable for events.
Diffstat (limited to 'source/blender/src/drawoops.c')
-rw-r--r--source/blender/src/drawoops.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/source/blender/src/drawoops.c b/source/blender/src/drawoops.c
index 4cfae91c665..bb75986e571 100644
--- a/source/blender/src/drawoops.c
+++ b/source/blender/src/drawoops.c
@@ -396,7 +396,6 @@ void drawoopsspace(ScrArea *sa, void *spacedata)
SpaceOops *soops= spacedata;
Oops *oops;
float col[3];
- int ofsx, ofsy;
BIF_GetThemeColor3fv(TH_BACK, col);
glClearColor(col[0], col[1], col[2], 0.0);
@@ -408,16 +407,6 @@ void drawoopsspace(ScrArea *sa, void *spacedata)
boundbox_oops();
calc_scrollrcts(G.v2d, curarea->winx, curarea->winy);
- if(curarea->winx>SCROLLB+10 && curarea->winy>SCROLLH+10) {
- if(G.v2d->scroll) {
- ofsx= curarea->winrct.xmin; /* because of mywin */
- ofsy= curarea->winrct.ymin;
-
- glViewport(ofsx+G.v2d->mask.xmin, ofsy+G.v2d->mask.ymin, ( ofsx+G.v2d->mask.xmax-1)-(ofsx+G.v2d->mask.xmin)+1, ( ofsy+G.v2d->mask.ymax-1)-( ofsy+G.v2d->mask.ymin)+1);
- glScissor(ofsx+G.v2d->mask.xmin, ofsy+G.v2d->mask.ymin, ( ofsx+G.v2d->mask.xmax-1)-(ofsx+G.v2d->mask.xmin)+1, ( ofsy+G.v2d->mask.ymax-1)-( ofsy+G.v2d->mask.ymin)+1);
- }
- }
-
myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);
oopscalex= .14*((float)curarea->winx)/(G.v2d->cur.xmax-G.v2d->cur.xmin);
@@ -453,8 +442,10 @@ void drawoopsspace(ScrArea *sa, void *spacedata)
/* ortho at pixel level curarea */
myortho2(-0.375, sa->winx-0.375, -0.375, sa->winy-0.375);
- if(sa->winx>SCROLLB+10 && sa->winy>SCROLLH+10) {
- if(G.v2d->scroll) drawscroll(0);
+ if(soops->type==SO_OUTLINER) {
+ if(sa->winx>SCROLLB+10 && sa->winy>SCROLLH+10) {
+ if(G.v2d->scroll) drawscroll(0);
+ }
}
draw_area_emboss(sa);