summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2025-05-25 01:21:36 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2025-05-25 13:20:44 +0300
commitd6419f729e3997c3d7cd67c7ff4ee38ab835c509 (patch)
tree9310e51723f8d46b0cd958981c332e5907f2d7c3
parent83fa366de9df385daec05c262f88eefd86af6adf (diff)
#4109 Fix GLTF model extents calculation
-rw-r--r--indra/newview/gltf/llgltfloader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/gltf/llgltfloader.cpp b/indra/newview/gltf/llgltfloader.cpp
index a64df86770..3312e61595 100644
--- a/indra/newview/gltf/llgltfloader.cpp
+++ b/indra/newview/gltf/llgltfloader.cpp
@@ -588,6 +588,9 @@ bool LLGLTFLoader::populateModelFromMesh(LLModel* pModel, const LL::GLTF::Mesh&
}
}
+ // Call normalizeVolumeFaces to compute proper extents
+ pModel->normalizeVolumeFaces();
+
// Fill joint names, bind matrices and prepare to remap weight indices
if (skinIdx >= 0)
{