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

Function set_project_manager

perro_editor/res/scripts/ui/editor_ui.rs:4906–4916  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    visible: bool,
)

Source from the content-addressed store, hash-verified

4904 "canvas_v_6", "canvas_v_7", "canvas_v_8",
4905];
4906const CANVAS_H_LINES: [&str; 9] = [
4907 "canvas_h_0", "canvas_h_1", "canvas_h_2", "canvas_h_3", "canvas_h_4", "canvas_h_5",
4908 "canvas_h_6", "canvas_h_7", "canvas_h_8",
4909];
4910
4911/// Drops the [`apply_viewport_canvas`] memo. Call after the editor ui shell or
4912/// the viewport panels get rebuilt: the fresh nodes carry no canvas state.
4913pub fn invalidate_viewport_canvas<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>) {
4914 let _ = with_state_mut!(ctx.run, EditorState, ctx.id, |state| {
4915 state.canvas_memo_valid = false;
4916 });
4917}
4918
4919/// Forced variant for rebuild paths.

Callers 4

open_projectFunction · 0.85
open_project_dialogFunction · 0.85
open_recent_projectFunction · 0.85

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected