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

Function unique_res_path

perro_editor/res/scripts/assets/editor_assets.rs:1775–1789  ·  view source on GitHub ↗
(project_root: &str, dir: &str, stem: &str, ext: &str)

Source from the content-addressed store, hash-verified

1773 rebuild_preview(ctx);
1774 refresh_all(ctx);
1775 } else {
1776 open_animation_path(ctx, anim_path);
1777 }
1778}
1779
1780pub fn export_selected_glb_animation<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>) {
1781 let request = with_state!(ctx.run, EditorState, ctx.id, |state| {
1782 let path = active_gltf_asset_path(state)?;
1783 Some((
1784 state.project_root.clone(),
1785 path,
1786 state.active_glb_anim_index,
1787 state.active_anim_player_key,
1788 ))
1789 }).unwrap_or_default();
1790 let Some((root, glb_path, anim_index, player_key)) = request else {
1791 set_log(ctx, "glb anim fail\nselect glb");
1792 return;

Callers 3

duplicate_res_targetFunction · 0.85

Calls 1

res_to_absFunction · 0.50

Tested by

no test coverage detected