(ctx: &mut ScriptContext<'_, API>, path: &str)
| 583 | "find user {}/{}\n{}", |
| 584 | next_idx + 1, |
| 585 | users.len(), |
| 586 | doc.scene.key_name_or_id(SceneKey::new(key)) |
| 587 | ); |
| 588 | true |
| 589 | }) |
| 590 | .unwrap_or(false); |
| 591 | if changed { |
| 592 | refresh_all(ctx); |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | pub fn selected_node_asset_refs(node: &SceneNodeEntry) -> Vec<String> { |
| 597 | let mut out = Vec::new(); |
| 598 | if let Some(root_of) = node.root_of.as_ref() |
| 599 | && root_of.starts_with("res://") |
| 600 | { |
| 601 | out.push(format!("root_of: {root_of}")); |
| 602 | } |
| 603 | if let Some(script) = node.script.as_ref() |
| 604 | && script.starts_with("res://") |
| 605 | { |
| 606 | out.push(format!("script: {script}")); |
| 607 | } |
no test coverage detected