jkvargas / russimp

Assimp bindings for Rust
Other
84 stars 27 forks source link

Panic when unwrapping the `mSemantic` property for materials #46

Closed IllusionMan1212 closed 1 year ago

IllusionMan1212 commented 1 year ago

Unwrapping on mSemantic causes a panic in the rare case it's a None value.

This issue happens on both the gltf and the glb versions of this Khronos glTF sample model

This is the error is prints when panicking

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/illusion/.cargo/registry/src/index.crates.io-6f17d22bba15001f/russimp-2.0.4/src/material.rs:501:74