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

Function nav_sidebar_parent

perro_editor/res/scripts/scene/editor_nav.rs:778–787  ·  view source on GitHub ↗
(ctx: &mut ScriptContext<'_, API>)

Source from the content-addressed store, hash-verified

776 select_file_edge(ctx, last);
777 } else {
778 select_scene_edge(ctx, last);
779 }
780}
781
782pub fn nav_sidebar_parent<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>) {
783 let mode = with_state!(ctx.run, EditorState, ctx.id, |state| {
784 state.sidebar_mode.clone()
785 }).unwrap_or_default();
786 if mode == "files" {
787 nav_file_scope_parent(ctx);
788 } else {
789 select_related_node(ctx, "parent");
790 }

Callers 1

update_editor_shortcutsFunction · 0.85

Calls 2

nav_file_scope_parentFunction · 0.85
select_related_nodeFunction · 0.85

Tested by

no test coverage detected