mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 04:51:47 +00:00
Clean up some of the instance wrapper APIs
This commit is contained in:
parent
824b984a64
commit
47ee8d54a8
3 changed files with 67 additions and 22 deletions
|
|
@ -155,7 +155,7 @@ fn compute_children_patches<'a>(
|
|||
.get_instance(id)
|
||||
.expect("Instance did not exist in tree");
|
||||
|
||||
let instance_children = instance.instance.get_children_ids();
|
||||
let instance_children = instance.children();
|
||||
|
||||
let mut paired_instances = vec![false; instance_children.len()];
|
||||
|
||||
|
|
@ -173,8 +173,8 @@ fn compute_children_patches<'a>(
|
|||
.get_instance(**instance_child_id)
|
||||
.expect("Instance did not exist in tree");
|
||||
|
||||
if snapshot_child.name == instance_child.instance.name
|
||||
&& snapshot_child.class_name == instance_child.instance.class_name
|
||||
if snapshot_child.name == instance_child.name()
|
||||
&& snapshot_child.class_name == instance_child.class_name()
|
||||
{
|
||||
paired_instances[*instance_index] = true;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue