From 23cf9d3579c7be2f517cc2b515ffb1e5e3942bc9 Mon Sep 17 00:00:00 2001 From: minerjr Date: Thu, 23 Jan 2025 20:14:07 -0400 Subject: [PATCH] FIRE-35083 - Floater_stats.xml has incorrect stat_view setting for materials Issue was caused by the stat_bar 'nummaterials' setting being used for the stat_view 'material' setting which was looking for a BOOL and was given a S32. Only the debug release would throw a bug splat. Release would give a warning and return false. Changes Include: Modified setting.xml - Added new Boolean OpenDebugStatMaterials to the settings.xml to match the naming of the other Statistics expand/collapse display settings. Modified floater_stat.xml - Updated the setting on the stat_bar 'nummaterials' to use the DebugStatModeMaterials setting. - Updated the setting on the stat_view 'material' to use the OpenDebugStatMaterials setting. --- indra/newview/app_settings/settings.xml | 14 ++++++++++++++ .../newview/skins/default/xui/en/floater_stats.xml | 9 +++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index f23ae785a2..77d07bd7d5 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -9242,6 +9242,20 @@ Change of this parameter will affect the layout of buttons in notification toast Value 1 + + + OpenDebugStatMaterials + + Comment + Expand Materials performance stats display + Persist + 1 + Type + Boolean + Value + 1 + + OpenDebugStatTexture Comment diff --git a/indra/newview/skins/default/xui/en/floater_stats.xml b/indra/newview/skins/default/xui/en/floater_stats.xml index cb52fca190..2b5cc98f3a 100644 --- a/indra/newview/skins/default/xui/en/floater_stats.xml +++ b/indra/newview/skins/default/xui/en/floater_stats.xml @@ -155,13 +155,18 @@ stat="glboundmemstat" setting="DebugStatModeBoundMem"/> + + + + setting="OpenDebugStatMaterials"> + stat="nummaterials" + setting="DebugStatModeMaterials"/> +