summaryrefslogtreecommitdiff
path: root/indra/llprimitive
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2023-04-21 13:26:24 -0700
committercosmic-linden <111533034+cosmic-linden@users.noreply.github.com>2023-04-21 15:10:05 -0700
commit005a5fa207d158995217cb9ecf5c214c8b2354cc (patch)
tree08ae2464306b77a4743d6898cf81a1c7e95fa696 /indra/llprimitive
parent5c903d9c953e422a95ccd88b345d803b60ce65ff (diff)
SL-19606: Fix missing GLTF texture transforms in PBR alpha mask/alpha blend shadows
Diffstat (limited to 'indra/llprimitive')
-rw-r--r--indra/llprimitive/llgltfmaterial.cpp2
-rw-r--r--indra/llprimitive/llgltfmaterial.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/llprimitive/llgltfmaterial.cpp b/indra/llprimitive/llgltfmaterial.cpp
index f3aa5b0648..c16803d39d 100644
--- a/indra/llprimitive/llgltfmaterial.cpp
+++ b/indra/llprimitive/llgltfmaterial.cpp
@@ -43,7 +43,7 @@ const char* const GLTF_FILE_EXTENSION_TRANSFORM_ROTATION = "rotation";
// special UUID that indicates a null UUID in override data
static const LLUUID GLTF_OVERRIDE_NULL_UUID = LLUUID("ffffffff-ffff-ffff-ffff-ffffffffffff");
-void LLGLTFMaterial::TextureTransform::getPacked(F32 (&packed)[8])
+void LLGLTFMaterial::TextureTransform::getPacked(F32 (&packed)[8]) const
{
packed[0] = mScale.mV[VX];
packed[1] = mScale.mV[VY];
diff --git a/indra/llprimitive/llgltfmaterial.h b/indra/llprimitive/llgltfmaterial.h
index bdabd657e1..0bd65fadef 100644
--- a/indra/llprimitive/llgltfmaterial.h
+++ b/indra/llprimitive/llgltfmaterial.h
@@ -61,7 +61,7 @@ public:
LLVector2 mScale = { 1.f, 1.f };
F32 mRotation = 0.f;
- void getPacked(F32 (&packed)[8]);
+ void getPacked(F32 (&packed)[8]) const;
bool operator==(const TextureTransform& other) const;
};