mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Add 'route' to each RbxInstance, which tags how the instance was generated
This commit is contained in:
parent
2df1dfa1cb
commit
86d7d033d7
4 changed files with 8 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ impl Plugin for DefaultPlugin {
|
|||
class_name: "StringValue".to_string(),
|
||||
children: Vec::new(),
|
||||
properties,
|
||||
route: Some(vfs_item.route().to_vec()),
|
||||
}))
|
||||
},
|
||||
&VfsItem::Dir { ref children, .. } => {
|
||||
|
|
@ -50,6 +51,7 @@ impl Plugin for DefaultPlugin {
|
|||
class_name: "Folder".to_string(),
|
||||
children: rbx_children,
|
||||
properties: HashMap::new(),
|
||||
route: Some(vfs_item.route().to_vec()),
|
||||
}))
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue