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:
parent
bb8560e5ad
commit
dc46959274
|
|
@ -1551,6 +1551,7 @@ impl DocumentMessageHandler {
|
||||||
responses.add(NodeGraphMessage::ForceRunDocumentGraph);
|
responses.add(NodeGraphMessage::ForceRunDocumentGraph);
|
||||||
// TODO: Remove once the footprint is used to load the imports/export distances from the edge
|
// TODO: Remove once the footprint is used to load the imports/export distances from the edge
|
||||||
responses.add(NodeGraphMessage::SetGridAlignedEdges);
|
responses.add(NodeGraphMessage::SetGridAlignedEdges);
|
||||||
|
responses.add(Message::StartBuffer);
|
||||||
Some(previous_network)
|
Some(previous_network)
|
||||||
}
|
}
|
||||||
pub fn redo_with_history(&mut self, ipp: &InputPreprocessorMessageHandler, responses: &mut VecDeque<Message>) {
|
pub fn redo_with_history(&mut self, ipp: &InputPreprocessorMessageHandler, responses: &mut VecDeque<Message>) {
|
||||||
|
|
|
||||||
|
|
@ -2822,6 +2822,7 @@ impl NodeNetworkInterface {
|
||||||
}
|
}
|
||||||
return Some(modified);
|
return Some(modified);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.document_metadata
|
self.document_metadata
|
||||||
.click_targets
|
.click_targets
|
||||||
.get(&layer)
|
.get(&layer)
|
||||||
|
|
|
||||||
|
|
@ -1091,7 +1091,6 @@ impl ShapeState {
|
||||||
|
|
||||||
// Check by comparing the handle positions to the anchor if this manipulator group is a point
|
// Check by comparing the handle positions to the anchor if this manipulator group is a point
|
||||||
let already_sharp = positions.next().is_none();
|
let already_sharp = positions.next().is_none();
|
||||||
|
|
||||||
if already_sharp {
|
if already_sharp {
|
||||||
self.convert_manipulator_handles_to_colinear(&vector_data, id, responses, layer);
|
self.convert_manipulator_handles_to_colinear(&vector_data, id, responses, layer);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 8.4 KiB |
Loading…
Reference in New Issue