Skip to content

Commit 77499df

Browse files
committed
Fix merge error.
1 parent 2a6e084 commit 77499df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/processing_pyo3/src/gltf.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ impl Gltf {
4646
#[pyfunction]
4747
#[pyo3(pass_module)]
4848
pub fn load_gltf(module: &Bound<'_, PyModule>, path: &str) -> PyResult<Gltf> {
49-
let graphics = get_graphics(module)?;
49+
let graphics = get_graphics(module)?
50+
.ok_or_else(|| PyRuntimeError::new_err("call size() first"))?;
5051
let entity =
5152
gltf_load(graphics.entity, path).map_err(|e| PyRuntimeError::new_err(format!("{e}")))?;
5253
Ok(Gltf { entity })

0 commit comments

Comments
 (0)