Skip to content

Commit

Permalink
Fix double clicking anchor to convert between smooth and sharp (#2023)
Browse files Browse the repository at this point in the history
* Buffer after undo

* Quick thumbnail fix while I'm thinking about it

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
  • Loading branch information
adamgerhant and Keavon authored Oct 7, 2024
1 parent bb8560e commit dc46959
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,7 @@ impl DocumentMessageHandler {
responses.add(NodeGraphMessage::ForceRunDocumentGraph);
// TODO: Remove once the footprint is used to load the imports/export distances from the edge
responses.add(NodeGraphMessage::SetGridAlignedEdges);
responses.add(Message::StartBuffer);
Some(previous_network)
}
pub fn redo_with_history(&mut self, ipp: &InputPreprocessorMessageHandler, responses: &mut VecDeque<Message>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2822,6 +2822,7 @@ impl NodeNetworkInterface {
}
return Some(modified);
}

self.document_metadata
.click_targets
.get(&layer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,6 @@ impl ShapeState {

// Check by comparing the handle positions to the anchor if this manipulator group is a point
let already_sharp = positions.next().is_none();

if already_sharp {
self.convert_manipulator_handles_to_colinear(&vector_data, id, responses, layer);
} else {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dc46959

Please sign in to comment.