Expand visualization to show IDs

This commit is contained in:
Lucien Greathouse
2019-01-03 15:22:38 -08:00
parent ad3999066d
commit a74c11aef5

View File

@@ -58,7 +58,7 @@ impl<'a> fmt::Display for VisualizeRbxTree<'a> {
fn visualize_rbx_node(tree: &RbxTree, id: RbxId, output: &mut fmt::Formatter) -> fmt::Result {
let node = tree.get_instance(id).unwrap();
writeln!(output, " \"{}\" [label=\"{} ({})\"]", id, node.name, node.class_name)?;
writeln!(output, " \"{}\" [label=\"{} ({})|{}\"]", id, node.name, node.class_name, id)?;
for &child_id in node.get_children_ids() {
writeln!(output, " \"{}\" -> \"{}\"", id, child_id)?;