Fix double clicking anchor to convert between smooth and sharp (#2023)

* Buffer after undo

* Quick thumbnail fix while I'm thinking about it

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
adamgerhant 2024-10-07 13:13:52 -07:00 committed by GitHub
parent bb8560e5ad
commit dc46959274
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 1 deletions

View file

@ -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>) {

View file

@ -2822,6 +2822,7 @@ impl NodeNetworkInterface {
}
return Some(modified);
}
self.document_metadata
.click_targets
.get(&layer)

View file

@ -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 {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Before After
Before After