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:
authorCampbell Barton <ideasman42@gmail.com>2007-12-12 02:05:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-12-12 02:05:10 +0300
commit6dc52c893f7d1d039c8bee0aca20d1f2e633b57d (patch)
treeec3d5835482179c4738f0bb027cef2c4d3015260 /source/blender/src/drawview.c
parent5e3f4c20bba737a266e3efbb5bca869bdeabcfba (diff)
for button popups, dont close unless you click or press escape, this would often close when dragging a button value (or when using a tablet I am told)
Diffstat (limited to 'source/blender/src/drawview.c')
-rw-r--r--source/blender/src/drawview.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 0d1551cc24f..19df0f67297 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -2807,6 +2807,7 @@ static void draw_sculpt_depths(View3D *v3d)
static void draw_viewport_fps(ScrArea *sa);
+
void drawview3dspace(ScrArea *sa, void *spacedata)
{
View3D *v3d= spacedata;
@@ -3288,11 +3289,12 @@ static void draw_viewport_fps(ScrArea *sa)
{
float fps;
char printable[16];
- printable[0] = '\0';
+
if (lredrawtime == redrawtime)
return;
+ printable[0] = '\0';
fps = (float)(1.0/(lredrawtime-redrawtime));
/* is this more then half a frame behind? */