Replace assert with full check.

This commit is contained in:
Kevin Ring 2025-01-13 21:37:30 +11:00
parent c988bfe2a1
commit daaec96323
1 changed files with 4 additions and 1 deletions

View File

@ -252,7 +252,10 @@ GltfReaderResult readBinaryGltf(
}
void postprocess(GltfReaderResult& readGltf, const GltfReaderOptions& options) {
CESIUM_ASSERT(readGltf.model.has_value());
if (!readGltf.model) {
return;
}
Model& model = readGltf.model.value();
auto extFeatureMetadataIter = std::find(