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

Function apply_spawn_position

perro_editor/res/scripts/scene/editor_nodes.rs:1043–1049  ·  view source on GitHub ↗
(data: &mut SceneNodeData, state: &EditorState)

Source from the content-addressed store, hash-verified

1041 set_log(ctx, &msg);
1042 rebuild_preview(ctx);
1043 refresh_all(ctx);
1044}
1045
1046pub fn add_node_from_picker<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>, row: usize) {
1047 let node_type = with_state!(ctx.run, EditorState, ctx.id, |state| {
1048 exact_picker_node_type(&state.node_picker_filter).or_else(|| {
1049 picker_node_types(state, &state.node_picker_filter)
1050 .get(state.node_picker_offset + row)
1051 .copied()
1052 })

Callers

nothing calls this directly

Calls 3

set_scene_vec2Function · 0.85
set_scene_vec3Function · 0.85
viewport_spawn_3dFunction · 0.85

Tested by

no test coverage detected