Enable layer debugging outside of god mode
This commit is contained in:
@@ -2478,8 +2478,8 @@ class LLAvatarEnableDebug : public view_listener_t
|
||||
{
|
||||
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
bool new_value = gAgent.isGodlike();
|
||||
gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value);
|
||||
//bool new_value = gAgent.isGodlike();
|
||||
//gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -41,10 +41,8 @@
|
||||
<on_click function="Avatar.Eject" />
|
||||
<on_enable function="Avatar.EnableFreezeEject" />
|
||||
</menu_item_call>
|
||||
<menu_item_call enabled="false" label="Debug..." mouse_opaque="true" name="Debug...">
|
||||
<menu_item_call enabled="true" label="Debug..." mouse_opaque="true" name="Debug Layers">
|
||||
<on_click function="Avatar.Debug" />
|
||||
<on_visible function="Avatar.VisibleDebug" />
|
||||
<on_enable function="Avatar.EnableDebug" />
|
||||
</menu_item_call>
|
||||
<menu_item_call enabled="true" label="Inspect" mouse_opaque="true" name="Object Inspect">
|
||||
<on_click function="Object.Inspect" />
|
||||
|
||||
Reference in New Issue
Block a user