| 3510 | } |
| 3511 | |
| 3512 | fn inspector_asset_path_matches(path: &str, filters: &[EditorAssetFilter]) -> bool { |
| 3513 | let ext = path |
| 3514 | .rsplit_once('.') |
| 3515 | .map(|(_, ext)| ext.to_ascii_lowercase()) |
| 3516 | .unwrap_or_default(); |
| 3517 | filters |
| 3518 | .iter() |
| 3519 | .any(|filter| filter.extensions.iter().any(|item| *item == ext)) |
| 3520 | } |
| 3521 | |
| 3522 | fn inspector_asset_picker_value( |
| 3523 | path: &str, |
| 3524 | kind: perro_scene::SceneAssetKind, |
| 3525 | glb_mesh_index: usize, |
| 3526 | ) -> String { |
| 3527 | match kind { |
| 3528 | perro_scene::SceneAssetKind::Mesh if is_gltf_path(path) => { |