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

Function set_node_picker_edge

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

Source from the content-addressed store, hash-verified

1106 if forward.y.abs() > 0.0001 {
1107 let t = -origin.y / forward.y;
1108 if t.is_finite() && t > 0.0 && t < 1000.0 {
1109 point = origin + forward * t;
1110 }
1111 }
1112 point.y = 0.0;
1113 point
1114}
1115
1116pub fn update_node_picker_filter<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>) {
1117 let Some(text) = read_text_box(ctx, "add_node_search_box") else {
1118 return;
1119 };

Callers 1

update_editor_shortcutsFunction · 0.85

Calls 1

refresh_allFunction · 0.85

Tested by

no test coverage detected