(state: &EditorState)
| 2048 | |
| 2049 | pub 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 { |
no test coverage detected