summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-11-02 14:58:24 -0500
committerDave Parks <davep@lindenlab.com>2022-11-02 14:58:24 -0500
commit3e7e146be689233b21e31c091298dcfa2cb1adfc (patch)
tree6b012470b3c0dbb0e9c0a2e0f1b6b7e1e62a75c3
parent32cc9a71d0e71bba96555558275a684501493e83 (diff)
SL-18520 Fix for mac build.
-rw-r--r--indra/llprimitive/llgltfmaterial.cpp4
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>();