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>2003-11-19 15:43:21 +0300
committerTon Roosendaal <ton@blender.org>2003-11-19 15:43:21 +0300
commitab9e6f69a0b29517d4e5f8aa439c184656e29dda (patch)
treee7ffc8894f5d2b6bc9c2130ad15049c019db9396 /source/blender/src/mywindow.c
parent76766ed969507631acc99a2f68d4b8776f1ea22e (diff)
- fixed bug caused by changing order of drawing buttons in material panel 2
the 'OB' and 'ME' buttons were not visible in all situations anymore...
Diffstat (limited to 'source/blender/src/mywindow.c')
-rw-r--r--source/blender/src/mywindow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/mywindow.c b/source/blender/src/mywindow.c
index 060cef8abc5..988d8c6dd72 100644
--- a/source/blender/src/mywindow.c
+++ b/source/blender/src/mywindow.c
@@ -461,6 +461,9 @@ void myortho(float x1, float x2, float y1, float y2, float n, float f)
void myortho2(float x1, float x2, float y1, float y2)
{
+ /* prevent opengl from generating errors */
+ if(x1==x2) x2+=1.0;
+ if(y1==y2) y2+=1.0;
bwin_ortho(curswin, x1, x2, y1, y2, -1, 1);
}