(ctx: &mut ScriptContext<'_, API>)
| 708 | state.log = "rename fail\nselect node or asset".to_string(); |
| 709 | } |
| 710 | }); |
| 711 | refresh_all(ctx); |
| 712 | } |
| 713 | |
| 714 | pub 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); |
no test coverage detected