Compiler fixes and a crashfix.
This commit is contained in:
@@ -5583,7 +5583,7 @@ LLUIImagePtr LLWearableBridge::getIcon() const
|
|||||||
return LLInventoryIcon::getIcon(mAssetType, mInvType, mWearableType, FALSE);
|
return LLInventoryIcon::getIcon(mAssetType, mInvType, mWearableType, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
//LLAppearanceMgr::moveWearable unfortunately fails for non-link item, so links in CoF must be found for this to work.
|
//LLAppearanceMgr::moveWearable unfortunately fails for non-link items, so links in CoF must be found for this to work.
|
||||||
void move_wearable_item(LLViewerInventoryItem* item, bool closer_to_body)
|
void move_wearable_item(LLViewerInventoryItem* item, bool closer_to_body)
|
||||||
{
|
{
|
||||||
if(!item)
|
if(!item)
|
||||||
@@ -5597,11 +5597,13 @@ void move_wearable_item(LLViewerInventoryItem* item, bool closer_to_body)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
LLInventoryModel::item_array_t items;
|
LLInventoryModel::item_array_t items;
|
||||||
|
LLInventoryModel::cat_array_t cats;
|
||||||
|
LLLinkedItemIDMatches is_linked_item_match(item->getUUID());
|
||||||
gInventory.collectDescendentsIf(LLAppearanceMgr::instance().getCOF(),
|
gInventory.collectDescendentsIf(LLAppearanceMgr::instance().getCOF(),
|
||||||
LLInventoryModel::cat_array_t(),
|
cats,
|
||||||
items,
|
items,
|
||||||
LLInventoryModel::EXCLUDE_TRASH,
|
LLInventoryModel::EXCLUDE_TRASH,
|
||||||
LLLinkedItemIDMatches(item->getUUID()));
|
is_linked_item_match);
|
||||||
if(!items.empty())
|
if(!items.empty())
|
||||||
{
|
{
|
||||||
if(LLAppearanceMgr::instance().moveWearable(gInventory.getItem(items.front()->getUUID()),closer_to_body))
|
if(LLAppearanceMgr::instance().moveWearable(gInventory.getItem(items.front()->getUUID()),closer_to_body))
|
||||||
|
|||||||
@@ -975,7 +975,7 @@ void LLPanelEditWearable::setWearableIndex(S32 index)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const LLEditWearableDictionary::SubpartEntry *subpart_entry = LLEditWearableDictionary::getInstance()->getSubpart(mCurrentSubpart);
|
const LLEditWearableDictionary::SubpartEntry *subpart_entry = LLEditWearableDictionary::getInstance()->getSubpart((ESubpart)mCurrentSubpart);
|
||||||
if(subpart_entry)
|
if(subpart_entry)
|
||||||
{
|
{
|
||||||
value_map_t sorted_params;
|
value_map_t sorted_params;
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ class LLLineEditor;
|
|||||||
class LLSubpart;
|
class LLSubpart;
|
||||||
class LLWearableSaveAsDialog;
|
class LLWearableSaveAsDialog;
|
||||||
|
|
||||||
enum ESubpart;
|
|
||||||
using namespace LLVOAvatarDefines;
|
using namespace LLVOAvatarDefines;
|
||||||
|
|
||||||
class LLPanelEditWearable : public LLPanel
|
class LLPanelEditWearable : public LLPanel
|
||||||
@@ -128,7 +127,7 @@ private:
|
|||||||
|
|
||||||
typedef std::map<LLVOAvatarDefines::ETextureIndex, LLUUID> s32_uuid_map_t;
|
typedef std::map<LLVOAvatarDefines::ETextureIndex, LLUUID> s32_uuid_map_t;
|
||||||
s32_uuid_map_t mPreviousAlphaTexture;
|
s32_uuid_map_t mPreviousAlphaTexture;
|
||||||
ESubpart mCurrentSubpart;
|
U32 mCurrentSubpart;
|
||||||
U32 mCurrentIndex;
|
U32 mCurrentIndex;
|
||||||
LLWearable* mCurrentWearable;
|
LLWearable* mCurrentWearable;
|
||||||
LLWearable* mPendingWearable; //For SaveAs. There's a period where the old wearable will be removed, but the new one will still be pending,
|
LLWearable* mPendingWearable; //For SaveAs. There's a period where the old wearable will be removed, but the new one will still be pending,
|
||||||
|
|||||||
@@ -618,6 +618,10 @@ SHClientTagMgr::SHClientTagMgr()
|
|||||||
gSavedSettings.getControl("AscentFriendColor")->getSignal()->connect(boost::bind(&LLVOAvatar::invalidateNameTags));
|
gSavedSettings.getControl("AscentFriendColor")->getSignal()->connect(boost::bind(&LLVOAvatar::invalidateNameTags));
|
||||||
gSavedSettings.getControl("AscentMutedColor")->getSignal()->connect(boost::bind(&LLVOAvatar::invalidateNameTags));
|
gSavedSettings.getControl("AscentMutedColor")->getSignal()->connect(boost::bind(&LLVOAvatar::invalidateNameTags));
|
||||||
|
|
||||||
|
gSavedSettings.getControl("AscentUseCustomTag")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
||||||
|
gSavedSettings.getControl("AscentCustomTagColor")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
||||||
|
gSavedSettings.getControl("AscentCustomTagLabel")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
||||||
|
|
||||||
if(!getIsEnabled())
|
if(!getIsEnabled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -627,9 +631,6 @@ SHClientTagMgr::SHClientTagMgr()
|
|||||||
|
|
||||||
//These only matter to the agent avatar. Don't iterate over everything.
|
//These only matter to the agent avatar. Don't iterate over everything.
|
||||||
gSavedSettings.getControl("AscentUseTag")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
gSavedSettings.getControl("AscentUseTag")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
||||||
gSavedSettings.getControl("AscentUseCustomTag")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
|
||||||
gSavedSettings.getControl("AscentCustomTagColor")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
|
||||||
gSavedSettings.getControl("AscentCustomTagLabel")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
|
||||||
gSavedSettings.getControl("AscentReportClientUUID")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
gSavedSettings.getControl("AscentReportClientUUID")->getSignal()->connect(boost::bind(&SHClientTagMgr::updateAgentAvatarTag, this));
|
||||||
|
|
||||||
//Fire off a AgentSetAppearance update if these change.
|
//Fire off a AgentSetAppearance update if these change.
|
||||||
@@ -727,9 +728,6 @@ void SHClientTagMgr::updateAgentAvatarTag()
|
|||||||
}
|
}
|
||||||
const LLSD SHClientTagMgr::generateClientTag(const LLVOAvatar* pAvatar) const
|
const LLSD SHClientTagMgr::generateClientTag(const LLVOAvatar* pAvatar) const
|
||||||
{
|
{
|
||||||
if(!getIsEnabled())
|
|
||||||
return LLSD();
|
|
||||||
|
|
||||||
static const LLCachedControl<LLColor4> avatar_name_color(gColors,"AvatarNameColor",LLColor4(LLColor4U(251, 175, 93, 255)) );
|
static const LLCachedControl<LLColor4> avatar_name_color(gColors,"AvatarNameColor",LLColor4(LLColor4U(251, 175, 93, 255)) );
|
||||||
LLUUID id;
|
LLUUID id;
|
||||||
|
|
||||||
@@ -748,6 +746,10 @@ const LLSD SHClientTagMgr::generateClientTag(const LLVOAvatar* pAvatar) const
|
|||||||
info.insert("color", ascent_custom_tag_color.get().getValue());
|
info.insert("color", ascent_custom_tag_color.get().getValue());
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
else if(!getIsEnabled())
|
||||||
|
{
|
||||||
|
return LLSD();
|
||||||
|
}
|
||||||
else if (ascent_use_tag)
|
else if (ascent_use_tag)
|
||||||
{
|
{
|
||||||
id.set(ascent_report_client_uuid,false);
|
id.set(ascent_report_client_uuid,false);
|
||||||
@@ -755,6 +757,9 @@ const LLSD SHClientTagMgr::generateClientTag(const LLVOAvatar* pAvatar) const
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if(!getIsEnabled())
|
||||||
|
return LLSD();
|
||||||
|
|
||||||
LLTextureEntry* pTextureEntry = pAvatar->getTE(TEX_HEAD_BODYPAINT);
|
LLTextureEntry* pTextureEntry = pAvatar->getTE(TEX_HEAD_BODYPAINT);
|
||||||
if (!pTextureEntry)
|
if (!pTextureEntry)
|
||||||
return LLSD();
|
return LLSD();
|
||||||
|
|||||||
@@ -466,7 +466,8 @@ void LLPipeline::init()
|
|||||||
gSavedSettings.getControl("RenderUseFarClip")->getCommitSignal()->connect(boost::bind(&LLPipeline::refreshCachedSettings));
|
gSavedSettings.getControl("RenderUseFarClip")->getCommitSignal()->connect(boost::bind(&LLPipeline::refreshCachedSettings));
|
||||||
gSavedSettings.getControl("RenderAvatarMaxVisible")->getCommitSignal()->connect(boost::bind(&LLPipeline::refreshCachedSettings));
|
gSavedSettings.getControl("RenderAvatarMaxVisible")->getCommitSignal()->connect(boost::bind(&LLPipeline::refreshCachedSettings));
|
||||||
//gSavedSettings.getControl("RenderDelayVBUpdate")->getCommitSignal()->connect(boost::bind(&LLPipeline::refreshCachedSettings));
|
//gSavedSettings.getControl("RenderDelayVBUpdate")->getCommitSignal()->connect(boost::bind(&LLPipeline::refreshCachedSettings));
|
||||||
|
gSavedSettings.getControl("UseOcclusion")->getCommitSignal()->connect(boost::bind(&LLPipeline::refreshCachedSettings));
|
||||||
|
gSavedSettings.getControl("VertexShaderEnable")->getCommitSignal()->connect(boost::bind(&LLPipeline::refreshCachedSettings));
|
||||||
}
|
}
|
||||||
|
|
||||||
LLPipeline::~LLPipeline()
|
LLPipeline::~LLPipeline()
|
||||||
|
|||||||
Reference in New Issue
Block a user