mirror of
https://github.com/hannobraun/Fornjot
synced 2025-06-29 22:56:07 +00:00
Simplify
This commit is contained in:
parent
00a8b98982
commit
c1379451a8
@ -57,13 +57,7 @@ pub struct OperationInSequence {
|
||||
|
||||
impl Operation for OperationInSequence {
|
||||
fn vertices(&self, vertices: &mut Vec<Vertex>) {
|
||||
vertices.extend(
|
||||
self.previous
|
||||
.as_ref()
|
||||
.map(|op| op.vertices.clone())
|
||||
.into_iter()
|
||||
.flatten(),
|
||||
);
|
||||
vertices.extend(self.previous.iter().flat_map(|op| op.vertices.iter()));
|
||||
vertices.extend(self.operation.vertices.clone());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user