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