MCPcopy Create free account
hub / github.com/PerroEngine/Perro / sanitize_node_name

Function sanitize_node_name

perro_editor/res/scripts/ui/editor_ui.rs:3512–3525  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

3510}
3511
3512fn 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
3522fn 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) => {

Callers 2

rename_selected_nodeFunction · 0.85

Calls 3

pushMethod · 0.45
nextMethod · 0.45
insertMethod · 0.45

Tested by 1