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

Function redo_active_scene

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

Source from the content-addressed store, hash-verified

528pub 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
536pub 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| {

Callers 1

update_editor_shortcutsFunction · 0.85

Calls 2

rebuild_previewFunction · 0.85
refresh_allFunction · 0.85

Tested by

no test coverage detected