diff options
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(); |