fix: a projected edge stays the edge that was picked when its body changes (#730)
A sketch's link to a projected edge now keeps the edge's persistent name and finds it by that name when the body changes, instead of taking whichever edge ends up nearest its point.
This commit is contained in:
1 parent
4a989f6e2d
commit
58af8accfa
12 files changed
+365
-30
No files matched your search
@@ -392,7 +392,7 @@ impl crate::Feature {
|
||||
}
|
||||
for link in &mut sketch.links {
|
||||
remap_link(&mut link.source, ids, names, bodies, 0);
|
||||
if let Some(n) = &mut link.face_name {
|
||||
for n in link.face_name.iter_mut().chain(&mut link.edge_name) {
|
||||
*n = remap_topology(n, ids, bodies);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user