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

Function open_add_node_popup

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

Source from the content-addressed store, hash-verified

708 state.log = "rename fail\nselect node or asset".to_string();
709 }
710 });
711 refresh_all(ctx);
712}
713
714pub fn open_add_node_popup<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>) {
715 let _ = with_state_mut!(ctx.run, EditorState, ctx.id, |state| {
716 state.node_picker_offset = 0;
717 state.node_picker_filter.clear();
718 state.add_node_as_sibling = false;
719 });
720 refresh_all(ctx);
721 set_add_node_popup(ctx, true);

Callers 1

update_editor_shortcutsFunction · 0.85

Calls 2

refresh_allFunction · 0.85
set_add_node_popupFunction · 0.85

Tested by

no test coverage detected