Skip to content

Commit

Permalink
small renames
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbrown committed Jan 31, 2024
1 parent e8b99c9 commit b61c963
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pax-core/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl InstanceNode for ComponentInstance {
.cloned()
.zip(iter::repeat(env));
*expanded_node.expanded_slot_children.borrow_mut() =
Some(containing_component.create_children_detatched(children_with_env, context));
Some(containing_component.create_children_detached(children_with_env, context));
}

let new_env = expanded_node.stack.push(&expanded_node.properties);
Expand Down
2 changes: 1 addition & 1 deletion pax-core/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ impl PaxEngine {
.recurse_visit_postorder(&assign_z_indicies, &mut self.z_index_node_cache);
}

// Oclussion
// Occlusion
let mut occlusion_ind = OcclusionLayerGen::new(None);
for node in self.z_index_node_cache.iter() {
let layer = node.instance_node.base().flags().layer;
Expand Down
4 changes: 2 additions & 2 deletions pax-core/src/engine/expanded_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl ExpandedNode {
})
}

pub fn create_children_detatched(
pub fn create_children_detached(
self: &Rc<Self>,
templates: impl IntoIterator<Item = (Rc<dyn InstanceNode>, Rc<RuntimePropertiesStackFrame>)>,
context: &mut RuntimeContext,
Expand Down Expand Up @@ -210,7 +210,7 @@ impl ExpandedNode {
templates: impl IntoIterator<Item = (Rc<dyn InstanceNode>, Rc<RuntimePropertiesStackFrame>)>,
context: &mut RuntimeContext,
) {
let new_children = self.create_children_detatched(templates, context);
let new_children = self.create_children_detached(templates, context);
self.attach_children(new_children, context);
}

Expand Down

0 comments on commit b61c963

Please sign in to comment.