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

Function inspector_picker_entries

perro_editor/res/scripts/ui/editor_ui.rs:2050–2057  ·  view source on GitHub ↗
(state: &EditorState)

Source from the content-addressed store, hash-verified

2048
2049pub fn asset_ref_text(state: &EditorState, path: &str, kind: &str) -> String {
2050 let users = asset_user_text(state, path);
2051 if path.ends_with(".glb") || path.ends_with(".gltf") {
2052 return format!(
2053 "{}\n{}\n{}\n{}",
2054 indexed_ref(path, "mesh", usize::MAX, state.active_glb_mesh_index),
2055 indexed_ref(path, "mat", usize::MAX, state.active_glb_mat_index),
2056 indexed_ref(path, "animation", usize::MAX, state.active_glb_anim_index),
2057 users
2058 );
2059 }
2060 match kind {

Callers 2

from_stateMethod · 0.85
inspector_picker_rowsFunction · 0.85

Calls 4

as_strMethod · 0.45

Tested by

no test coverage detected