summaryrefslogtreecommitdiff
path: root/indra/llprimitive
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-06-29 21:42:44 -0500
committerDave Parks <davep@lindenlab.com>2022-06-29 21:42:44 -0500
commit6f6df8ed71702f0ee8d21a2b583818ae360dd093 (patch)
tree70545286267ecc4419b7d1dfe463c6d08490775a /indra/llprimitive
parent56ae3e0a083aefcbd6d7c955bb2c7e9e58000a4b (diff)
SL-17685 Drag and drop material support
Diffstat (limited to 'indra/llprimitive')
-rw-r--r--indra/llprimitive/llgltfmaterial.h2
-rw-r--r--indra/llprimitive/llprimitive.cpp2
-rw-r--r--indra/llprimitive/llprimitive.h2
3 files changed, 4 insertions, 2 deletions
diff --git a/indra/llprimitive/llgltfmaterial.h b/indra/llprimitive/llgltfmaterial.h
index d6f59cd1a3..a8d5fb8e85 100644
--- a/indra/llprimitive/llgltfmaterial.h
+++ b/indra/llprimitive/llgltfmaterial.h
@@ -53,6 +53,8 @@ public:
F32 mMetallicFactor = 0.f;
F32 mRoughnessFactor = 0.f;
+ F32 mAlphaCutoff = 0.f;
+
bool mDoubleSided = false;
AlphaMode mAlphaMode = ALPHA_MODE_OPAQUE;
diff --git a/indra/llprimitive/llprimitive.cpp b/indra/llprimitive/llprimitive.cpp
index 6df7111a47..3f0059b759 100644
--- a/indra/llprimitive/llprimitive.cpp
+++ b/indra/llprimitive/llprimitive.cpp
@@ -2430,7 +2430,7 @@ void LLRenderMaterialParams::setMaterial(U8 te, const LLUUID& id)
mEntries.push_back({ te, id });
}
-LLUUID LLRenderMaterialParams::getMaterial(U8 te) const
+const LLUUID& LLRenderMaterialParams::getMaterial(U8 te) const
{
for (int i = 0; i < mEntries.size(); ++i)
{
diff --git a/indra/llprimitive/llprimitive.h b/indra/llprimitive/llprimitive.h
index 1c290185b0..d2adfa4a3d 100644
--- a/indra/llprimitive/llprimitive.h
+++ b/indra/llprimitive/llprimitive.h
@@ -387,7 +387,7 @@ public:
bool fromLLSD(LLSD& sd);
void setMaterial(U8 te_idx, const LLUUID& id);
- LLUUID getMaterial(U8 te_idx) const;
+ const LLUUID& getMaterial(U8 te_idx) const;
bool isEmpty() { return mEntries.empty(); }
};