Update packages/engine/Source/Scene/GltfLoader.js

Co-authored-by: Gabby Getz <gabby@cesium.com>
This commit is contained in:
Erin Ingram 2025-08-08 13:25:09 -04:00 committed by GitHub
parent 5191dc1362
commit ed262b2a55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2422,7 +2422,7 @@ function getMeshPrimitives(mesh) {
// Spec: the group must not be empty and all indices must be valid array indices into mesh.primitives.
const firstPrimitiveIndex = group.primitives[0];
if (
undefined === firstPrimitiveIndex ||
!defined(firstPrimitiveIndex) ||
!meshPrimitives[firstPrimitiveIndex]
) {
return meshPrimitives;