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

Function set_anim_drawer

perro_editor/res/scripts/scene/editor_nodes.rs:449–457  ·  view source on GitHub ↗
(ctx: &mut ScriptContext<'_, API>, visible: bool)

Source from the content-addressed store, hash-verified

447pub fn set_sidebar_mode<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>, mode: &str) {
448 let _ = with_state_mut!(ctx.run, EditorState, ctx.id, |state| {
449 state.sidebar_mode = mode.to_string();
450 if state.activity_mode != "glb" {
451 state.activity_mode = "scene".to_string();
452 }
453 });
454 refresh_all(ctx);
455}
456
457pub fn set_anim_drawer<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>, visible: bool) {
458 let _ = with_state_mut!(ctx.run, EditorState, ctx.id, |state| {
459 state.anim_drawer_open = visible;
460 state.bottom_dock_open = visible;

Callers 2

update_editor_shortcutsFunction · 0.85
handle_editor_escapeFunction · 0.85

Calls 1

refresh_allFunction · 0.85

Tested by

no test coverage detected