summaryrefslogtreecommitdiff
path: root/indra/newview/llgltfmateriallist.cpp
diff options
context:
space:
mode:
authorAqil Ahmad <aaqilahmadd@gmail.com>2025-10-06 18:52:33 +0500
committerGitHub <noreply@github.com>2025-10-06 16:52:33 +0300
commit5fe152cfea87c04c1edf2caa7d419a056a7916a2 (patch)
tree8e82a800b3bf42aa1ce3a4e661745798f42c3724 /indra/newview/llgltfmateriallist.cpp
parenta54a96a1f4d4c06fb58dcd7be6d01a54d02bd86f (diff)
Fix #4195: Preserve transforms when switching PBR materials (#4725)
Fixes texture transforms being reset when switching from Blinn-Phong to PBR materials and between PBR. Previously, custom scale, offset, and rotation settings would be lost, making it tedious to switch between PBR materials.
Diffstat (limited to 'indra/newview/llgltfmateriallist.cpp')
-rw-r--r--indra/newview/llgltfmateriallist.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/indra/newview/llgltfmateriallist.cpp b/indra/newview/llgltfmateriallist.cpp
index 3e4aadc381..64b6d20cd6 100644
--- a/indra/newview/llgltfmateriallist.cpp
+++ b/indra/newview/llgltfmateriallist.cpp
@@ -380,17 +380,6 @@ void LLGLTFMaterialList::queueApply(const LLViewerObject* obj, S32 side, const L
LLGLTFMaterial* material = new LLGLTFMaterial(*material_override);
sApplyQueue.push_back({ obj->getID(), side, asset_id, material });
}
-
- if (sUpdates.size() >= MAX_TASK_UPDATES)
- {
- LLCoros::instance().launch("modifyMaterialCoro",
- std::bind(&LLGLTFMaterialList::modifyMaterialCoro,
- gAgent.getRegionCapability("ModifyMaterialParams"),
- sUpdates,
- std::shared_ptr<CallbackHolder>(nullptr)));
-
- sUpdates = LLSD::emptyArray();
- }
}
void LLGLTFMaterialList::queueUpdate(const LLSD& data)