mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 01:28:12 +08:00
Decouple node graph execution (#1209)
* Decouple node graph execution from the main loop * Trigger document Render + Layer updates after the graph evaluation
This commit is contained in:
@@ -107,6 +107,7 @@ impl OverlayRenderer {
|
||||
// Eventually will get replaced with am immediate mode renderer for overlays
|
||||
}
|
||||
}
|
||||
responses.add(OverlaysMessage::Rerender);
|
||||
}
|
||||
|
||||
pub fn clear_subpath_overlays(&mut self, document: &Document, layer_path: Vec<LayerId>, responses: &mut VecDeque<Message>) {
|
||||
|
||||
@@ -219,7 +219,7 @@ impl ShapeState {
|
||||
let Ok(layer) = document.layer(layer_path) else { continue };
|
||||
let Some(vector_data) = layer.as_vector_data() else { continue };
|
||||
|
||||
let opposing_handle_lengths = opposing_handle_lengths.as_ref().map(|lengths| lengths.get(layer_path)).flatten();
|
||||
let opposing_handle_lengths = opposing_handle_lengths.as_ref().and_then(|lengths| lengths.get(layer_path));
|
||||
|
||||
let transform = document.multiply_transforms(layer_path).unwrap_or(glam::DAffine2::IDENTITY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user