From 58472180696401155159414c20a307cf97f7df44 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Wed, 19 Oct 2022 00:08:27 +0300 Subject: SL-18391 Basic GLTF lifetime management --- indra/newview/lllocalgltfmaterials.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indra/newview/lllocalgltfmaterials.cpp') 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 raw_material; + LLPointer 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)) { -- cgit v1.2.3