(ctx: &mut ScriptContext<'_, API>)
| 528 | pub fn redo_active_scene<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>) { |
| 529 | let changed = with_state_mut!(ctx.run, EditorState, ctx.id, redo_scene_doc).unwrap_or(false); |
| 530 | if changed { |
| 531 | rebuild_preview(ctx); |
| 532 | } |
| 533 | refresh_all(ctx); |
| 534 | } |
| 535 | |
| 536 | pub fn editor_text_box_has_focus<API: ScriptAPI + ?Sized>( |
| 537 | ctx: &mut ScriptContext<'_, API>, |
| 538 | ) -> bool { |
| 539 | with_state!(ctx.run, EditorState, ctx.id, |state| { |
no test coverage detected