Converted frequently occuring setting lookups to LLCachedControl
Added LLObjectList::getAvatar(LLUUID) for type-safe and quicker lookup Added F32 overload to LLSD because using F64 needlessly is silly. (And its lack of F32 overload caused issues with LLCachedControl<F32>)
This commit is contained in:
@@ -216,10 +216,11 @@ void LLToolCamera::pickCallback(const LLPickInfo& pick_info)
|
||||
gAgent.setFocusGlobal(pick_info);
|
||||
}
|
||||
|
||||
static LLCachedControl<bool> freeze_time("FreezeTime",0);
|
||||
if (!(pick_info.mKeyMask & MASK_ALT) &&
|
||||
gAgent.cameraThirdPerson() &&
|
||||
gViewerWindow->getLeftMouseDown() &&
|
||||
!gSavedSettings.getBOOL("FreezeTime") &&
|
||||
!freeze_time &&
|
||||
(hit_obj == gAgent.getAvatarObject() ||
|
||||
(hit_obj && hit_obj->isAttachment() && LLVOAvatar::findAvatarFromAttachment(hit_obj)->isSelf())))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user