diff options
author | McCabe Maxsted | 2010-07-03 10:50:26 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-07-03 10:50:26 -0700 |
commit | 37a95ce589c39ff50528092580ca767556272a64 (patch) | |
tree | b084853b481d571d2562304ab8e2fb2a77a02fc2 /linden/indra/newview/llappviewer.cpp | |
parent | Fixed regression: 'Radar' missing from logcontrol.xml (diff) | |
download | meta-impy-37a95ce589c39ff50528092580ca767556272a64.zip meta-impy-37a95ce589c39ff50528092580ca767556272a64.tar.gz meta-impy-37a95ce589c39ff50528092580ca767556272a64.tar.bz2 meta-impy-37a95ce589c39ff50528092580ca767556272a64.tar.xz |
If controls are missing from a skin's colors_base.xml, use the values in the default skin instead of crashing (from Emerald)
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index b810abe..7d2dac8 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -652,6 +652,17 @@ bool LLAppViewer::init() | |||
652 | { | 652 | { |
653 | LLError::setPrintLocation(true); | 653 | LLError::setPrintLocation(true); |
654 | } | 654 | } |
655 | |||
656 | // ZWAGOTH: This resolves a bunch of skin updating problems and makes skinning | ||
657 | // SIGNIFICANLTLY easier. User colors > skin colors > default skin colors. | ||
658 | // This also will get rid of the Invalid control... spam when a skin doesn't have that color | ||
659 | // setting defined as long as we keep the default skin up to date. Maybe make invalid controls | ||
660 | // errors again? | ||
661 | std::string default_base_filename = gDirUtilp->getExpandedFilename(LL_PATH_SKINS, | ||
662 | "default", | ||
663 | "colors_base.xml"); | ||
664 | LL_DEBUGS("InitInfo") << "Loading default base colors from " << default_base_filename << LL_ENDL; | ||
665 | gColors.loadFromFileLegacy(default_base_filename, FALSE, TYPE_COL4U); | ||
655 | 666 | ||
656 | // Load art UUID information, don't require these strings to be declared in code. | 667 | // Load art UUID information, don't require these strings to be declared in code. |
657 | std::string colors_base_filename = gDirUtilp->findSkinnedFilename("colors_base.xml"); | 668 | std::string colors_base_filename = gDirUtilp->findSkinnedFilename("colors_base.xml"); |