mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-01 18:23:52 -06:00
canvas-w11: net change of 2 commits
- canvas-w11: written by an agent - canvas-w11: review fixes (review-1)
This commit is contained in:
@@ -1009,9 +1009,10 @@ pub fn segment_start_of(sh: &Shape, path: usize, index: usize) -> Option<usize>
|
||||
vs.iter().position(|v| Some(*v) == j.checked_sub(1))
|
||||
}
|
||||
|
||||
/// Adding, deleting, opening or closing renumbers the points of `path`: a point type remembered
|
||||
/// for one of them would follow the wrong point.
|
||||
/// Renumbering invalidates menu picks and any point type remembered for `path`.
|
||||
fn forget_kinds(s: &mut Session, path: usize) {
|
||||
s.tool.edit_segment = None;
|
||||
s.tool.edit_vertex = None;
|
||||
if s.tool.vertex_kind.as_ref().is_some_and(|k| k.1 == path) {
|
||||
s.tool.vertex_kind = None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user