diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/newview/lltoolbar.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/newview/lltoolbar.cpp')
-rw-r--r-- | linden/indra/newview/lltoolbar.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/linden/indra/newview/lltoolbar.cpp b/linden/indra/newview/lltoolbar.cpp index 8d103ce..6612538 100644 --- a/linden/indra/newview/lltoolbar.cpp +++ b/linden/indra/newview/lltoolbar.cpp | |||
@@ -288,10 +288,15 @@ void LLToolBar::refresh() | |||
288 | 288 | ||
289 | // Clothing button updated inside LLFloaterClothing | 289 | // Clothing button updated inside LLFloaterClothing |
290 | 290 | ||
291 | childSetEnabled("fly_btn", gAgent.canFly() || gAgent.getFlying() ); | 291 | BOOL sitting = FALSE; |
292 | if (gAgent.getAvatarObject()) | ||
293 | { | ||
294 | sitting = gAgent.getAvatarObject()->mIsSitting; | ||
295 | } | ||
292 | 296 | ||
293 | childSetEnabled("build_btn", LLViewerParcelMgr::getInstance()->agentCanBuild() ); | 297 | childSetEnabled("fly_btn", (gAgent.canFly() || gAgent.getFlying()) && !sitting ); |
294 | 298 | ||
299 | childSetEnabled("build_btn", LLViewerParcelMgr::getInstance()->agentCanBuild() ); | ||
295 | 300 | ||
296 | // Check to see if we're in build mode | 301 | // Check to see if we're in build mode |
297 | BOOL build_mode = LLToolMgr::getInstance()->inEdit(); | 302 | BOOL build_mode = LLToolMgr::getInstance()->inEdit(); |