diff --git a/crates/pptx/src/write/shapes.rs b/crates/pptx/src/write/shapes.rs index 2140211c7..80eabbcf2 100644 --- a/crates/pptx/src/write/shapes.rs +++ b/crates/pptx/src/write/shapes.rs @@ -343,7 +343,9 @@ pub fn shape(w: &mut W, x: &mut Exp, o: &mut Out, cx: &mut Ctx, s: &Shape, depth { dml::effects(w, fx); } - if let Some(raw) = fx.raw3d.as_deref().and_then(|s| dml::valid_raw3d(s, &["scene3d"])) { + if let Some(raw) = + fx.raw3d.as_deref().map(|s| s.find("