mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-15 19:55:51 +00:00
Update argument name
This commit is contained in:
parent
c937454439
commit
2e196adf82
@ -8,7 +8,7 @@ pub trait UpdateShell {
|
|||||||
/// Update a face of the shell
|
/// Update a face of the shell
|
||||||
fn replace_face(
|
fn replace_face(
|
||||||
&self,
|
&self,
|
||||||
handle: &Handle<Face>,
|
original: &Handle<Face>,
|
||||||
replacement: Handle<Face>,
|
replacement: Handle<Face>,
|
||||||
) -> Shell;
|
) -> Shell;
|
||||||
|
|
||||||
@ -19,11 +19,11 @@ pub trait UpdateShell {
|
|||||||
impl UpdateShell for Shell {
|
impl UpdateShell for Shell {
|
||||||
fn replace_face(
|
fn replace_face(
|
||||||
&self,
|
&self,
|
||||||
handle: &Handle<Face>,
|
original: &Handle<Face>,
|
||||||
replacement: Handle<Face>,
|
replacement: Handle<Face>,
|
||||||
) -> Shell {
|
) -> Shell {
|
||||||
let faces = self.faces().into_iter().map(|face| {
|
let faces = self.faces().into_iter().map(|face| {
|
||||||
if face.id() == handle.id() {
|
if face.id() == original.id() {
|
||||||
replacement.clone()
|
replacement.clone()
|
||||||
} else {
|
} else {
|
||||||
face.clone()
|
face.clone()
|
||||||
|
Loading…
Reference in New Issue
Block a user