Skip to content

Commit

Permalink
Fix featureCount validation
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Sep 16, 2023
1 parent 7238950 commit 751f584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation/gltfExtensions/ExtMeshFeaturesValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ export class ExtMeshFeaturesValidator {

// Validate the featureCount
// The featureCount MUST be defined
// The featureCount MUST be an integer of at least 0
// The featureCount MUST be an integer of at least 1
const featureCount = featureId.featureCount;
const featureCountPath = path + "/featureCount";
if (
!BasicValidator.validateIntegerRange(
featureCountPath,
"featureCount",
featureCount,
0,
1,
true,
undefined,
false,
Expand Down

0 comments on commit 751f584

Please sign in to comment.