diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-10-19 00:08:27 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-10-19 01:01:03 +0300 |
commit | 58472180696401155159414c20a307cf97f7df44 (patch) | |
tree | e19a13561730db2915bdbd8ef5152e8881848944 /indra/newview/lllocalgltfmaterials.cpp | |
parent | 0b177c27a07344d81cb52806695b2348b6f33b0a (diff) |
SL-18391 Basic GLTF lifetime management
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)) { |