Add undeform to Avatar Health menu

Cinders 2013-03-05 23:16:57 -07:00
parent a8ca686079
commit bb9a7e5469
2 changed files with 20 additions and 1 deletions

View File

@ -138,6 +138,7 @@
#include "llvovolume.h"
#include "particleeditor.h"
#include "piemenu.h" // ## Zi: Pie Menu
#include "fspose.h" // <FS:CR> FIRE-4345: Undeform
using namespace LLAvatarAppearanceDefines;
@ -8648,7 +8649,18 @@ class FSToolsResyncAnimations : public view_listener_t
return true;
}
};
// </FS:CR>
// </FS:CR> Resync Animations
// <FS:CR> FIRE-4345: Undeform
class FSToolsUndeform : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
{
FSPose::getInstance()->setPose("44e98907-3764-119f-1c13-cba9945d2ff4");
return true;
}
};
// </FS:CR> FIRE-4345: Undeform
class LLToolsSelectOnlyMyObjects : public view_listener_t
{
@ -9945,6 +9957,7 @@ void initialize_menus()
// <FS:Ansariel> FIRE-304: Option to exclude group owned objects
view_listener_t::addMenu(new FSToolSelectIncludeGroupOwned(), "Tools.SelectIncludeGroupOwned");
view_listener_t::addMenu(new FSToolsResyncAnimations(), "Tools.ResyncAnimations"); // <FS:CR> Resync Animations
view_listener_t::addMenu(new FSToolsUndeform(), "Tools.Undeform"); // <FS:CR> FIRE-4345: Undeform
view_listener_t::addMenu(new LLToolsEnableToolNotPie(), "Tools.EnableToolNotPie");
view_listener_t::addMenu(new LLToolsEnableSelectNextPart(), "Tools.EnableSelectNextPart");

View File

@ -216,6 +216,12 @@
<menu_item_call.on_click
function="Tools.StopAllAnimations" />
</menu_item_call>
<menu_item_call
label="Undeform Avatar"
name="undeform_avatar">
<menu_item_call.on_click
function="Tools.Undeform" />
</menu_item_call>
<menu_item_call
label="Force Appearance Update (Rebake)"
name="Rebake Texture"