We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a6e084 commit 77499dfCopy full SHA for 77499df
crates/processing_pyo3/src/gltf.rs
@@ -46,7 +46,8 @@ impl Gltf {
46
#[pyfunction]
47
#[pyo3(pass_module)]
48
pub fn load_gltf(module: &Bound<'_, PyModule>, path: &str) -> PyResult<Gltf> {
49
- let graphics = get_graphics(module)?;
+ let graphics = get_graphics(module)?
50
+ .ok_or_else(|| PyRuntimeError::new_err("call size() first"))?;
51
let entity =
52
gltf_load(graphics.entity, path).map_err(|e| PyRuntimeError::new_err(format!("{e}")))?;
53
Ok(Gltf { entity })
0 commit comments