From 5ef79d571bbcbd5491051c0fa3081d9a9bcc20e1 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 6 Oct 2011 00:12:01 +0200 Subject: [PATCH] Add another patch for times where the user has no inventory items being worn and the viewer refusing to wearing new ones. Conflicts: indra/newview/llagentwearables.cpp indra/newview/llagentwearables.h --- indra/newview/llagentwearables.cpp | 7 +++++++ indra/newview/llagentwearables.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index aeaecb15d..ef9ecb967 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -486,6 +486,13 @@ BOOL LLAgentWearables::isWearableCopyable(LLWearableType::EType type) const return FALSE; } +BOOL LLAgentWearables::areWearablesLoaded() const +{ + if(gSavedSettings.getBOOL("RenderUnloadedAvatar")) + return TRUE; + return mWearablesLoaded; +} + U32 LLAgentWearables::getWearablePermMask(LLWearableType::EType type) const { LLUUID item_id = getWearableItemID(type); diff --git a/indra/newview/llagentwearables.h b/indra/newview/llagentwearables.h index f64c6c5e8..6d052142b 100644 --- a/indra/newview/llagentwearables.h +++ b/indra/newview/llagentwearables.h @@ -84,7 +84,7 @@ public: BOOL isWearableModifiable(const LLUUID& item_id) const; BOOL isWearableCopyable(LLWearableType::EType type) const; - BOOL areWearablesLoaded() const { return mWearablesLoaded; }; + BOOL areWearablesLoaded() const; //void updateWearablesLoaded(); //void checkWearablesLoaded() const; //bool canMoveWearable(const LLUUID& item_id, bool closer_to_body);