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

Function renamed_asset_ref

perro_editor/res/scripts/assets/editor_assets.rs:1438–1447  ·  view source on GitHub ↗
(path: &str, source: &str, target: &str)

Source from the content-addressed store, hash-verified

1436 }
1437 state.dirty = true;
1438 }
1439 }
1440 if let Ok(paths) = scan_res_paths(Path::new(&state.project_root)) {
1441 state.file_paths = paths;
1442 state.scene_paths = state
1443 .file_paths
1444 .iter()
1445 .filter(|path| path.ends_with(".scn"))
1446 .cloned()
1447 .collect();
1448 }
1449 state.active_asset_path = target.clone();
1450 state.file_scope = parent_res_folder(&target);

Callers 2

Calls 2

base_res_asset_pathFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected