mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 21:41:37 +00:00
Add script reference handling in RojoTree during snapshot insertion
- Implemented logic to insert script references into the tree when a snapshot of a script class is processed. - Enhanced the existing snapshot insertion method to ensure proper tracking of script instances. These changes aim to improve the management of script references within the RojoTree structure.
This commit is contained in:
parent
22e437a055
commit
288e679653
1 changed files with 4 additions and 0 deletions
|
|
@ -69,6 +69,10 @@ impl RojoTree {
|
|||
|
||||
tree.insert_metadata(root_ref, snapshot.metadata);
|
||||
|
||||
if is_script_class(snapshot.class_name.as_ref()) {
|
||||
tree.script_refs.insert(root_ref);
|
||||
}
|
||||
|
||||
for child in snapshot.children {
|
||||
tree.insert_instance(root_ref, child);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue