Integration: #8142 #8535 Quick Export accepts a .exr path

Main's extension check (#8519) refused .exr, the format #8142 adds to Export Preferences; the path's extension now may also name EXR.
This commit is contained in:
aiongg
2026-10-22 15:40:08 +00:00
parent add0fbc706
commit 22d912a108
+2 -2
View File
@@ -1091,8 +1091,8 @@ fn quick_export(s: &mut Session, p: &Value) -> Result<Value> {
let fmt = match crate::file_cmds::extension(&path).as_deref() {
None => fmt,
Some("jpg" | "jpeg") => "jpg".into(),
Some(e @ ("png" | "gif" | "webp")) => e.into(),
Some(e) => return Err(bad(cmd, format!("Quick Export writes PNG, JPEG, GIF or WebP, not .{e}; use Export As"))),
Some(e @ ("png" | "gif" | "webp" | "exr")) => e.into(),
Some(e) => return Err(bad(cmd, format!("Quick Export writes PNG, JPEG, GIF, WebP or EXR, not .{e}; use Export As"))),
};
let d = s.active().ok_or(EngineError::NoDocument)?;
let doc = d.doc.clone();