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

Function resize_handles

perro_editor/res/scripts/scene/editor_viewport.rs:2545–2560  ·  view source on GitHub ↗
(rect: EditorUiRect)

Source from the content-addressed store, hash-verified

2543pub fn push_doc_order(doc: &SceneDoc, key: u32, out: &mut Vec<u32>) {
2544 if out.contains(&key) {
2545 return;
2546 }
2547 out.push(key);
2548 for child in doc
2549 .scene
2550 .nodes
2551 .iter()
2552 .filter(|child| child.parent.map(|parent| parent.as_u32()) == Some(key))
2553 {
2554 push_doc_order(doc, child.key.as_u32(), out);
2555 }
2556}
2557
2558pub fn preview_runtime_order<API: ScriptAPI + ?Sized>(
2559 ctx: &mut ScriptContext<'_, API>,
2560 root: NodeID,
2561 limit: usize,
2562) -> Vec<NodeID> {
2563 let mut out = Vec::new();

Callers 1

pick_resize_handleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected