From 42c2f314832f24e89ddeb4e7666171bba556a7c4 Mon Sep 17 00:00:00 2001 From: Morion Date: Tue, 17 Nov 2026 09:08:47 -0500 Subject: [PATCH] Hold the language lock in the anchor picker test The test draws the UI, and the i18n tests switch the process-wide language to ones the installed fonts cannot draw, which made the Windows CI panic on a Japanese glyph. It now takes TEST_LANGUAGE like the other tests that draw the UI. --- crates/ui-egui/src/dock.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-egui/src/dock.rs b/crates/ui-egui/src/dock.rs index 561ef23f..ebe6c78a 100644 --- a/crates/ui-egui/src/dock.rs +++ b/crates/ui-egui/src/dock.rs @@ -2375,6 +2375,8 @@ mod mask_anchor_label_tests { #[test] fn inherited_effect_pickers_hide_unrecorded_source_set_anchors() { + // The harness draws the UI, and the i18n tests switch the process-wide language to ones its fonts cannot draw + let _language = crate::i18n::TEST_LANGUAGE.lock().unwrap_or_else(std::sync::PoisonError::into_inner); let mesh = texturecraft_engine::geom::primitives::material_ball(); let mut session = texturecraft_engine::Session::new_project("test", mesh, "builtin:material_ball", None, 256).unwrap(); let lower = execute(&mut session, "layer.add.fill", &Value::Null).unwrap()["layer"].as_u64().unwrap();