diff --git a/indra/newview/fspanelface.cpp b/indra/newview/fspanelface.cpp index d3a2da30f6..5d4c130183 100644 --- a/indra/newview/fspanelface.cpp +++ b/indra/newview/fspanelface.cpp @@ -5294,7 +5294,7 @@ void FSPanelFace::updateGLTFTextureTransform(const LLGLTFMaterial::TextureInfo t void FSPanelFace::setMaterialOverridesFromSelection() { // TODO: move to .h -Zi - std::map spinner_suffixes{ + static std::map spinner_suffixes{ { LLGLTFMaterial::TextureInfo::GLTF_TEXTURE_INFO_BASE_COLOR, "_Base" }, { LLGLTFMaterial::TextureInfo::GLTF_TEXTURE_INFO_NORMAL, "_Normal" }, { LLGLTFMaterial::TextureInfo::GLTF_TEXTURE_INFO_METALLIC_ROUGHNESS, "_Metallic" }, @@ -5479,7 +5479,7 @@ bool FSPanelFace::Selection::compareSelection() void FSPanelFace::onCommitGLTFUVSpinner(const LLUICtrl* ctrl, const LLSD& user_data) { // TODO: put into .h -Zi - std::map types = + static std::map types = { { "all", LLGLTFMaterial::GLTF_TEXTURE_INFO_COUNT }, { "base", LLGLTFMaterial::GLTF_TEXTURE_INFO_BASE_COLOR },