Always Build/Always Fly options.

This commit is contained in:
CharleyLevenque
2010-08-30 01:46:03 -04:00
parent bb89f6b9be
commit b156e57541
5 changed files with 114 additions and 24 deletions

View File

@@ -291,9 +291,9 @@ void LLToolBar::refresh()
sitting = gAgent.getAvatarObject()->mIsSitting;
}
childSetEnabled("fly_btn", (gAgent.canFly() || gAgent.getFlying()) && !sitting );
childSetEnabled("fly_btn", (gAgent.canFly() || gAgent.getFlying() || gSavedSettings.getBOOL("AscentFlyAlwaysEnabled")) && !sitting );
childSetEnabled("build_btn", LLViewerParcelMgr::getInstance()->agentCanBuild() );
childSetEnabled("build_btn", (LLViewerParcelMgr::getInstance()->agentCanBuild() || gSavedSettings.getBOOL("AscentBuildAlwaysEnabled")) );
// Check to see if we're in build mode
BOOL build_mode = LLToolMgr::getInstance()->inEdit();