diff options
Diffstat (limited to 'indra/newview/lllocalgltfmaterials.cpp')
-rw-r--r-- | indra/newview/lllocalgltfmaterials.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/lllocalgltfmaterials.cpp b/indra/newview/lllocalgltfmaterials.cpp index fe2b7ac816..f292844313 100644 --- a/indra/newview/lllocalgltfmaterials.cpp +++ b/indra/newview/lllocalgltfmaterials.cpp @@ -152,16 +152,16 @@ bool LLLocalGLTFMaterial::updateSelf() if (mLastModified.asString() != new_last_modified.asString()) { - LLPointer<LLGLTFMaterial> raw_material; + LLPointer<LLFetchedGLTFMaterial> raw_material; if (mWorldID.notNull()) { // update existing material // will create a new one if material doesn't exist yet - raw_material = gGLTFMaterialList.getMaterial(mWorldID); + raw_material = (LLFetchedGLTFMaterial*)gGLTFMaterialList.getMaterial(mWorldID); } else { - raw_material = new LLGLTFMaterial(); + raw_material = new LLFetchedGLTFMaterial(); } if (loadMaterial(raw_material, mMaterialIndex)) { |