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

Function mark_active_scene_dirty

perro_editor/res/scripts/editor/main.rs:187–193  ·  view source on GitHub ↗
(state: &mut EditorState)

Source from the content-addressed store, hash-verified

185 state.log = format!("undo\n{} left", state.scene_undo_stack.len());
186 true
187}
188
189pub fn redo_scene_doc(state: &mut EditorState) -> bool {
190 let Some(next) = state.scene_redo_stack.pop() else {
191 state.log = "redo\nempty".to_string();
192 return false;
193 };
194 push_scene_undo_snapshot(state);
195 state.doc_text = next;
196 let _ = cached_scene_doc_shared(&state.doc_text);

Callers 2

undo_scene_docFunction · 0.85
redo_scene_docFunction · 0.85

Calls 4

anyMethod · 0.80
getMethod · 0.45
iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected