diff options
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 9687e11..8165e55 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -8295,6 +8295,33 @@ class LLAdvancedCheckDisableTextures : public view_listener_t | |||
8295 | 8295 | ||
8296 | 8296 | ||
8297 | 8297 | ||
8298 | //////////////////////////////////////// | ||
8299 | // RENDER ATTACHED LIGHTS / PARTICLES // | ||
8300 | //////////////////////////////////////// | ||
8301 | |||
8302 | |||
8303 | class LLToggleRenderAttachedLights : public view_listener_t | ||
8304 | { | ||
8305 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8306 | { | ||
8307 | menu_toggle_control((void *)"RenderAttachedLights"); | ||
8308 | LLPipeline::sRenderAttachedLights = gSavedSettings.getBOOL("RenderAttachedLights"); | ||
8309 | return true; | ||
8310 | } | ||
8311 | }; | ||
8312 | |||
8313 | class LLToggleRenderAttachedParticles : public view_listener_t | ||
8314 | { | ||
8315 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8316 | { | ||
8317 | menu_toggle_control((void *)"RenderAttachedParticles"); | ||
8318 | LLPipeline::sRenderAttachedParticles = gSavedSettings.getBOOL("RenderAttachedParticles"); | ||
8319 | return true; | ||
8320 | } | ||
8321 | }; | ||
8322 | |||
8323 | |||
8324 | |||
8298 | ////////////////////////// | 8325 | ////////////////////////// |
8299 | // DUMP SCRIPTED CAMERA // | 8326 | // DUMP SCRIPTED CAMERA // |
8300 | ////////////////////////// | 8327 | ////////////////////////// |
@@ -9956,6 +9983,10 @@ void initialize_menus() | |||
9956 | addMenu(new LLAdvancedToggleDisableTextures(), "Advanced.ToggleDisableTextures"); | 9983 | addMenu(new LLAdvancedToggleDisableTextures(), "Advanced.ToggleDisableTextures"); |
9957 | addMenu(new LLAdvancedCheckDisableTextures(), "Advanced.CheckDisableTextures"); | 9984 | addMenu(new LLAdvancedCheckDisableTextures(), "Advanced.CheckDisableTextures"); |
9958 | 9985 | ||
9986 | // Advanced > Render (top level menu) | ||
9987 | addMenu(new LLToggleRenderAttachedLights(), "ToggleRenderAttachedLights"); | ||
9988 | addMenu(new LLToggleRenderAttachedParticles(), "ToggleRenderAttachedParticles"); | ||
9989 | |||
9959 | // Advanced > World | 9990 | // Advanced > World |
9960 | addMenu(new LLAdvancedDumpScriptedCamera(), "Advanced.DumpScriptedCamera"); | 9991 | addMenu(new LLAdvancedDumpScriptedCamera(), "Advanced.DumpScriptedCamera"); |
9961 | addMenu(new LLAdvancedDumpRegionObjectCache(), "Advanced.DumpRegionObjectCache"); | 9992 | addMenu(new LLAdvancedDumpRegionObjectCache(), "Advanced.DumpRegionObjectCache"); |