Avatar Physics innital commit. No edit panel. SavedSettings not plugged in yet.

This commit is contained in:
Shyotl
2011-04-28 10:09:11 -05:00
parent 332cfdb532
commit 2dff12433c
29 changed files with 1821 additions and 24 deletions

View File

@@ -3913,6 +3913,7 @@ class LLEditEnableCustomizeAvatar : public view_listener_t
}
};
class LLEditEnableChangeDisplayname : public view_listener_t
{
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
@@ -8894,6 +8895,10 @@ class LLEditEnableTakeOff : public view_listener_t
{
new_value = LLAgent::selfHasWearable((void *)WT_TATTOO);
}
if (clothing == "physics")
{
new_value = LLAgent::selfHasWearable((void *)WT_PHYSICS);
}
// [RLVa:KB] - Checked: 2009-07-07 (RLVa-1.1.3b) | Modified: RLVa-1.1.3b | OK
// Why aren't they using LLWearable::typeNameToType()? *confuzzled*
@@ -8957,6 +8962,10 @@ class LLEditTakeOff : public view_listener_t
{
LLAgent::userRemoveWearable((void*)WT_TATTOO);
}
else if (clothing == "physics")
{
LLAgent::userRemoveWearable((void*)WT_PHYSICS);
}
else if (clothing == "all")
{
LLAgent::userRemoveAllClothes(NULL);