(project_root: &str, dir: &str, stem: &str, ext: &str)
| 1773 | rebuild_preview(ctx); |
| 1774 | refresh_all(ctx); |
| 1775 | } else { |
| 1776 | open_animation_path(ctx, anim_path); |
| 1777 | } |
| 1778 | } |
| 1779 | |
| 1780 | pub 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; |
no test coverage detected