Skip to content

Commit

Permalink
Merge pull request #455 from nyalldawson/fix_message
Browse files Browse the repository at this point in the history
Fix incorrect component type shown in warning message
  • Loading branch information
syoyo authored Sep 12, 2023
2 parents 4b9cfc8 + c35819f commit e0b393c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiny_gltf.h
Original file line number Diff line number Diff line change
@@ -4926,13 +4926,13 @@ static bool ParseDracoExtension(Primitive *primitive, Model *model,
}

if (supposedComponentType > model->accessors[primitive->indices].componentType) {
model->accessors[primitive->indices].componentType = supposedComponentType;
if (warn) {
(*warn) +=
"GLTF component type " + std::to_string(model->accessors[primitive->indices].componentType) +
" is not sufficient for number of stored points,"
" treating as " + std::to_string(supposedComponentType) + "\n";
}
model->accessors[primitive->indices].componentType = supposedComponentType;
}
}

0 comments on commit e0b393c

Please sign in to comment.