Multi-wearable prep: Updated LLAgentWearables and LLWearable. ItemId<->wearable association moved into individual LLWearables and out of LLAgentWearables. Wearables should now have their name field updated with their parent items name more reliably now, as well.
This commit is contained in:
@@ -2390,7 +2390,7 @@ class LLSelfRemoveAllAttachments : public view_listener_t
|
||||
{
|
||||
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
LLAgentWearables::userRemoveAllAttachments(NULL);
|
||||
LLAgentWearables::userRemoveAllAttachments();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
@@ -9173,7 +9173,7 @@ class LLEditEnableTakeOff : public view_listener_t
|
||||
if ( !(rlv_handler_t::isEnabled()) || (gRlvWearableLocks.canRemove(type)) )
|
||||
// [/RLVa:KB]
|
||||
|
||||
new_value = LLAgentWearables::selfHasWearable((void *)type);
|
||||
new_value = LLAgentWearables::selfHasWearable(type);
|
||||
|
||||
gMenuHolder->findControl(control_name)->setValue(new_value);
|
||||
return false;
|
||||
@@ -9187,14 +9187,14 @@ class LLEditTakeOff : public view_listener_t
|
||||
std::string clothing = userdata.asString();
|
||||
if (clothing == "all")
|
||||
{
|
||||
LLAgentWearables::userRemoveAllClothes(NULL);
|
||||
LLAgentWearables::userRemoveAllClothes();
|
||||
}
|
||||
else
|
||||
{
|
||||
LLWearableType::EType type = LLWearableType::typeNameToType(clothing);
|
||||
if (type >= LLWearableType::WT_SHAPE
|
||||
&& type < LLWearableType::WT_COUNT)
|
||||
LLAgentWearables::userRemoveWearable((void*)type);
|
||||
LLAgentWearables::userRemoveWearable(type);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user