diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-06-24 00:39:25 +0300 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-06-24 00:57:38 +0300 |
commit | 9e87757a5b89cda3ee2fd08f7954b7c6796227ab (patch) | |
tree | b5888464fe64410f84c40dc68fd41dee2bbd2b09 /indra | |
parent | 1a6e3286110f9e54611715b44c5f8b47d08dc310 (diff) |
#4257 Use filename as model initial name
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/gltf/llgltfloader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/gltf/llgltfloader.cpp b/indra/newview/gltf/llgltfloader.cpp index 7a1ebf0610..2631b7fefe 100644 --- a/indra/newview/gltf/llgltfloader.cpp +++ b/indra/newview/gltf/llgltfloader.cpp @@ -465,6 +465,9 @@ void LLGLTFLoader::computeCombinedNodeTransform(const LL::GLTF::Asset& asset, S3 bool LLGLTFLoader::populateModelFromMesh(LLModel* pModel, const LL::GLTF::Mesh& mesh, const LL::GLTF::Node& nodeno, material_map& mats, S32 instance_count) { + // Set the requested label for the floater display and uploading + pModel->mRequestedLabel = gDirUtilp->getBaseFileName(mFilename, true); + // Create unique model name std::string base_name = mesh.mName; if (base_name.empty()) |