Feature fields: a type for each role (Expr, BodyName, FacePick…) (#1273)
Thanks @jijinbei.
This commit is contained in:
1 parent
3333f8a62b
commit
44968dbfe6
59 files changed
+1505
-1043
No files matched your search
@@ -25,7 +25,7 @@ fn arrow(h: &Harness) -> (Vec3, Vec3) {
|
||||
|
||||
fn last_hole_direction(h: &Harness) -> Vec3 {
|
||||
match &h.app.session.doc.features.last().unwrap().kind {
|
||||
FeatureKind::Hole { direction, .. } => *direction,
|
||||
FeatureKind::Hole { direction, .. } => direction.0,
|
||||
other => panic!("the last feature is not a hole: {}", other.type_name()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user