diff options
author | Dave Parks <davep@lindenlab.com> | 2022-11-02 14:58:24 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-11-02 14:58:24 -0500 |
commit | 3e7e146be689233b21e31c091298dcfa2cb1adfc (patch) | |
tree | 6b012470b3c0dbb0e9c0a2e0f1b6b7e1e62a75c3 | |
parent | 32cc9a71d0e71bba96555558275a684501493e83 (diff) |
SL-18520 Fix for mac build.
-rw-r--r-- | indra/llprimitive/llgltfmaterial.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llprimitive/llgltfmaterial.cpp b/indra/llprimitive/llgltfmaterial.cpp index 172cbdb7ce..c76f547570 100644 --- a/indra/llprimitive/llgltfmaterial.cpp +++ b/indra/llprimitive/llgltfmaterial.cpp @@ -136,13 +136,13 @@ void LLGLTFMaterial::setFromModel(const tinygltf::Model& model, S32 mat_index) if (material_in.extras.IsObject()) { tinygltf::Value::Object extras = material_in.extras.Get<tinygltf::Value::Object>(); - auto& alpha_mode = extras.find("override_alpha_mode"); + const auto& alpha_mode = extras.find("override_alpha_mode"); if (alpha_mode != extras.end()) { mOverrideAlphaMode = alpha_mode->second.Get<bool>(); } - auto& double_sided = extras.find("override_double_sided"); + const auto& double_sided = extras.find("override_double_sided"); if (double_sided != extras.end()) { mOverrideDoubleSided = double_sided->second.Get<bool>(); |