Replace assert with full check.
This commit is contained in:
parent
c988bfe2a1
commit
daaec96323
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue