mirror of https://github.com/CesiumGS/cesium.git
Update packages/engine/Source/Scene/GltfLoader.js
Co-authored-by: Gabby Getz <gabby@cesium.com>
This commit is contained in:
parent
5191dc1362
commit
ed262b2a55
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue