(rect: EditorUiRect)
| 2543 | pub 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 | |
| 2558 | pub 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(); |
no outgoing calls
no test coverage detected