(data: &'a SceneNodeData, field: &str)
| 3125 | mesh_count, |
| 3126 | indexed_ref(path, "mesh", mesh_count, mesh_index), |
| 3127 | material_count, |
| 3128 | indexed_ref(path, "mat", material_count, mat_index), |
| 3129 | animation_count, |
| 3130 | indexed_ref(path, "animation", animation_count, anim_index), |
| 3131 | skeleton_count, |
| 3132 | texture_count, |
| 3133 | ) |
| 3134 | } |
| 3135 | |
| 3136 | pub fn indexed_ref(path: &str, kind: &str, count: usize, index: usize) -> String { |
| 3137 | if count == 0 { |
| 3138 | "-".to_string() |
| 3139 | } else { |
no test coverage detected